avast / authenticode-parser

Authenticode-parser is a simple C library for Authenticode format parsing using OpenSSL.
MIT License
16 stars 8 forks source link

Fixed ByteArray allocation with 0 length #6

Closed metthal closed 2 years ago

metthal commented 2 years ago

It's unnecessary to allocate anything when the size of the buffer is declared to be 0 bytes. It might lead to issues where condition over data pointer can lead to invalid memory access.