Nikolay Nikolov
|
8606f13b24
+ check for memory index other than 0 in the wasm object reader and report an error, since that is not supported
|
1 year ago |
Nikolay Nikolov
|
23fa8c80b6
+ read the section content in the wasm object reader
|
1 year ago |
Nikolay Nikolov
|
56fe6cadc8
* fill the data in the DataSegments array when parsing the WASM_SEGMENT_INFO subsection
|
1 year ago |
Nikolay Nikolov
|
50f76a2ffb
* moved another local var to avoid bug
|
1 year ago |
Nikolay Nikolov
|
2ab16a5a8f
- removed debug writeln
|
1 year ago |
Nikolay Nikolov
|
e754937ad3
+ verify the segment count when parsing the WASM_SEGMENT_INFO subsection
|
1 year ago |
Nikolay Nikolov
|
bbb564437d
+ parse the data section in the wasm object reader
|
1 year ago |
Nikolay Nikolov
|
818b6e6983
* check that the data count section preceeds the data section and report an error otherwise
|
1 year ago |
Nikolay Nikolov
|
e4600f5e38
+ read the data count from the data section. Set size of the DataSegments
|
1 year ago |
Nikolay Nikolov
|
10b201c506
+ check for duplicated data sections
|
1 year ago |
Nikolay Nikolov
|
6f7c1b5b4e
+ added DataSegments dynarray of record, that will store data segment info
|
1 year ago |
Nikolay Nikolov
|
e3c5d016e0
+ check for duplicated WASM_SEGMENT_INFO subsections
|
1 year ago |
Nikolay Nikolov
|
3121ee1367
+ parse the WASM_SEGMENT_INFO subsection
|
1 year ago |
Nikolay Nikolov
|
8a7743b566
* set FReader and InputFileName in the beginning of TWasmObjInput.ReadObjData
|
1 year ago |
Nikolay Nikolov
|
e7f6da4cb0
* the 'linking' section is a section, not a subsection. Fix error messages.
|
1 year ago |
Nikolay Nikolov
|
9063c3c0ed
+ parse the linking custom section by splitting it into subsections and call subfunctions (dummy for now) for each subsection
|
1 year ago |
Nikolay Nikolov
|
8802c7d489
+ parse and check the version of the 'linking' section
|
1 year ago |
Nikolay Nikolov
|
5a5abe2419
+ started parsing of custom sections - known custom sections are dispatched to
|
1 year ago |
Nikolay Nikolov
|
2ae98a7363
+ read the code entries count from the code section
|
1 year ago |
Nikolay Nikolov
|
7d41f5eb92
+ added code section duplicate check in wasm object reader
|
1 year ago |
Nikolay Nikolov
|
b2861bacdd
- removed the repeated section bounds check in the section parsing code,
|
1 year ago |
Nikolay Nikolov
|
8591f1218c
+ added section bounds checking to the read function, used inside TWasmObjInput.ReadObjData.ReadSection
|
1 year ago |
Nikolay Nikolov
|
16c18e845f
- removed the TObjectReader parameter from ReadUleb, ReadUleb32 and ReadName
|
1 year ago |
Nikolay Nikolov
|
01d97bea00
- rm commented out code
|
1 year ago |
Nikolay Nikolov
|
36fe4cf43d
* the ReadUleb, ReadUleb32 and ReadName methods moved to be local functions inside TWasmObjInput.ReadObjData.ReadSection
|
1 year ago |
Nikolay Nikolov
|
c9b407508a
* use ReadUleb32 in more places
|
1 year ago |
Nikolay Nikolov
|
621699acca
+ introduced ReadUleb32 to avoid code repetition of the >high(uint32) checks
|
1 year ago |
Nikolay Nikolov
|
bcb7c069fb
+ parse the data count section
|
1 year ago |
Nikolay Nikolov
|
f87a66f1e6
+ parse the rest of the function section
|
1 year ago |
Nikolay Nikolov
|
c7880e7bd1
+ read the functions count from the functions section
|
1 year ago |