* repo-wide: trim trailing spaces
Note: This doesn't touch the .tbl files in encodings/ since they include
meaningful trailing spaces (`20= `)
* patterns: clean up duplicate semicolons
* ELF: add header magic check
* glTF: use type::Magic for magic value
* glTF: check that the file size in the header matches
* xgstexture: fix generics syntax for magic value
* JPEG: define hex enum with 0x00 instead of 0X00
* CI: update deprecated actions
---------
Co-authored-by: Nik <werwolv98@gmail.com>
ordinalTableRVA is not always has value. it might be zero.
Whien this happened, it will failed.
Signed-off-by: Chunhao Hung <chunhao.hung@insyde.com>
Co-authored-by: Chunhao Hung <chunhao.hung@insyde.com>
* Updated the custom themes to the new text editor color palettes designed for full syntax highlighting, but the existing themes should look just like they did before.
* impr: renamed pattern-placed-variable to calculated-pointer and added view
fix: pe pattern could read past the end of file if symbol search option was turned on and input file had no symbols. In that case a StringTable array that has 1 element would be created and place at offset 0 where the size variable was set to a large number creating the error. The fix is to set the size of the array using numberOfSymbols>0
* Fix: that was a bad choice for the size of the stringTable array because even if findSymbols is not on the file can contain symbols. This was causing the pe unit test to fail. To get the right array size use sizeof(symbolTable)>0 which will be 1 only if findSymbols is true and the file actually contains symbols
* Add files via upload
* Update README.md
Added nes.hexpat to list of hex patterns
* Fix indenting of hex patterns list
Moved nes.hexpat below NE.hexpat
* Update README.md
Fixed indenting of PP pattern file's description being wrong
* Added x-msdownload MIME type to PE description
* Made indenting & code of ips.hexpat better
* Improvements to gb.hexpat
* Urgent fix to ips.hexpat
* Urgent fix to gb.hexpat
* Massive pe.hexpat improvement
* Replaced virtualDifference with relativeVirtualDifference
* Fixing unnecessary pattern_limit
* Add `current_bit_offset()` and `read_bits(...)` to `std::mem`
* Replace deprecated BitfieldOrder enum values with new clearer names
This adds new options named `MostToLeastSignificant` and `LeastToMostSignificant` to replace the old `LeftToRight` and `RightToLeft` names. These names should be much clearer about what they affect and how.
* Throw errors when `std::core::(get|set)_bitfield_order()` are called
* Update all patterns to work with the new bitfield behaviors
* Update pe.hexpat
Implementing a number of things and fixing others
* Update pe.hexpat
Adding the readonlyData pattern
* Update pe.hexpat
Testing putting the number of tabs on Github to 4 instead of 8 (so that comments on the code for the Sections don't break)
* Update pe.hexpat
Reverting change that turned out to be needless
* Update pe.hexpat
Actually sending the `products[while($ != richHeaderEndPosition)]` to `products[while($ < richHeaderEndPosition)]` change
* Improved PE patterns for both x86 and x64 files.
Added sections table and data directories.
Support for 64bits binaries.
Separated files for 32bits and 64bits binaries.
* Deleted old PE pattern.
* Single file used for both PE32 and PE32+.
Change FORMAT preprocessor constant to switch mode.
* Improved sections table localization.
Using recently added nextAfter() builtin-function to locate sections
table.
* Automatic detection for 64bits executables.
Automatically detect if PE32+ format is enabled by checking machine
value.
* Updated README.md for single PE hexpat file.
* Use String for sections name.
* Remove silly usage of define preprocessor.