edo9300 / edopro

A script engine for "yu-gi-oh!" and sample gui (former "ygopro")
Other
279 stars 75 forks source link

CGUICustomTable: Fix SEGFAULT when lockTexture is missing. #199

Closed LordYuuma closed 3 years ago

LordYuuma commented 3 years ago

If lockTexture is a nullptr, calculating text_size and bg_sizef is UB and will lead to a segfault if you try hard enough.

edo9300 commented 3 years ago

fixed in 78531233d5a3b6033569eca8935851b71cee6621