You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue seems to be unsigned integer overflow here: https://github.com/sammycage/lunasvg/blob/master/source/lunasvg.cpp#L28 and the access violation will happen in the loop inside Bitmap::clear().
It is possible to work around this issue by manually specifying width and height in renderToBitmap() but it would be nicer to have an exception thrown or something else rather than get an access violation crash.
The text was updated successfully, but these errors were encountered:
This svg will crash with access violation with the following call:
auto bitmap = pDoc->renderToBitmap(0, 0, 0xFFFFFFFF);
The issue seems to be unsigned integer overflow here: https://github.com/sammycage/lunasvg/blob/master/source/lunasvg.cpp#L28 and the access violation will happen in the loop inside Bitmap::clear().
It is possible to work around this issue by manually specifying width and height in renderToBitmap() but it would be nicer to have an exception thrown or something else rather than get an access violation crash.
The text was updated successfully, but these errors were encountered: