buffer overflow in C3DGraphicChessboard::load() call to sprintf

-       char texture_filename[50];
-       sprintf(texture_filename,PC_DATA_TEXTURE_SKYBOX,i),
+       char texture_filename[1024];
+       snprintf(texture_filename,1023,PC_DATA_TEXTURE_SKYBOX,i),


** Patch added: "20_sprintf-buff-overflow-fix.patch"
   
https://bugs.edge.launchpad.net/ubuntu/+source/pouetchess/+bug/493284/+attachment/1557115/+files/20_sprintf-buff-overflow-fix.patch

-- 
[pouet-Chess] the application starts but the real chess game cannot be started
https://bugs.launchpad.net/bugs/493284
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to