ImpulseAdventure / JPEGsnoop

JPEGsnoop: JPEG decoder and detailed analysis
http://www.impulseadventure.com/photo/jpeg-snoop.html
GNU General Public License v2.0
499 stars 83 forks source link

Fix memory overrun in memset of m_anDctBlock #39

Closed vbaderks closed 6 years ago

vbaderks commented 6 years ago

m_anDctBlock is defined as signed short but initialized with a size of (64*sizeof(int)). Note 1: using sizeof is in general more safe as it not affected by changes elsewhere. Note 2: memory overrun had no effect in released product as following class member is also initialized with zero's.

ImpulseAdventure commented 6 years ago

Thanks very much for the fix!