]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Fix two memory allocation issues
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 9 Feb 2024 09:14:59 +0000 (19:14 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 9 Feb 2024 10:12:15 +0000 (20:12 +1000)
commite73dfbb6367cb7bffe644e0eb070c0d31fa2e824
treecaf4f383cad2145b8b5299012520b7d6a8789678
parent7a1500c7787419c7bcf74aef2e093b4d47235276
Fix two memory allocation issues

In fa06dd40f48b20d738b6bd604758c81defd76cfd I misunderstood the
subdivision code, causing sentinel2 to be written past the end of the
buffer... somehow many maps and games worked fine despite this. This
commit reverts the bad line from that commit.

A very old (div0-stable) bug when loading Q1BSP meant we didn't allocate
enough texture memory when a "sky" texture name wasn't all lowercase,
causing a crash when loading custom map e2m9.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
model_brush.c
zone.c