CasualX / pelite

Lightweight, memory-safe, zero-allocation library for reading and navigating PE binaries.
MIT License
280 stars 42 forks source link

Fix case of incorrect parsing of square brackets #231

Closed CasualX closed 4 years ago

CasualX commented 4 years ago

The Skip atom with an argument of zero means to skip a number of bytes equal to the width of a pointer on the target platform. The parser for the square brackets incorrectly generated a Skip atom with argument zero if the lower bound was zero.