thesourcerer8 / hddsuperclone

HDDSuperClone, HDDSuperTool
GNU General Public License v2.0
385 stars 34 forks source link

Fix segfault due to massive stack allocation #7

Closed SomeCrazyGuy closed 1 year ago

SomeCrazyGuy commented 1 year ago

hddscviewer attempts to allocate a massive 24MB of stack memory to provide a buffer for a gtk_label, this makes the allocation a more reasonable size and should fix the crash related to clicking on a square to view its details.

thesourcerer8 commented 1 year ago

Ok, those 24 MB are too much, but I am not sure, we have the right amount here, and I don't see any limitations that we aren't overflowing the buffer we have. I think we should try to find a better and safer solution there...