From 6233331f23603ebab0a7aa626ff82d71426b3bd6 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 3 Apr 2025 01:43:04 +0900 Subject: feat: update php and package version --- src/WebAssembly/BinaryFormat/Decoder.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/WebAssembly/BinaryFormat/Decoder.php') diff --git a/src/WebAssembly/BinaryFormat/Decoder.php b/src/WebAssembly/BinaryFormat/Decoder.php index 2e59df4..e64fac8 100644 --- a/src/WebAssembly/BinaryFormat/Decoder.php +++ b/src/WebAssembly/BinaryFormat/Decoder.php @@ -78,6 +78,8 @@ final class Decoder $codes = $this->decodeSection(SectionId::Code, $this->decodeCodeSecRest(...)) ?? []; $datas = $this->decodeSection(SectionId::Data, $this->decodeDataSecRest(...)) ?? []; + $this->skipCustomSections(); + if (!$this->stream->eof()) { throw new InvalidBinaryFormatException("eof"); } -- cgit v1.2.3-70-g09d2