planetis-m / naylib

Yet another raylib Nim wrapper
MIT License
181 stars 10 forks source link

Buffer overflow with getPixelColor when sizeof(Pixel) < getPixelDataSize #86

Closed planetis-m closed 12 months ago

planetis-m commented 12 months ago
Address 0x7f1165400321 is located in stack of thread T0 at offset 33 in frame
    #0 0x559e39992f0f in getPixelColor__raw95data_u205 raydev/naylib/src/raylib.nim:2034

  This frame has 1 object(s):
    [32, 33) 'pixel_p0.addr' <== Memory access at offset 33 overflows this variable