EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Bugs (https://www.eqemulator.org/forums/forumdisplay.php?f=622)
-   -   Crash searching for items with long names (https://www.eqemulator.org/forums/showthread.php?t=4919)

Kaiyodo 01-26-2003 08:20 AM

Crash searching for items with long names
 
While adding some new items to the DB I came across a bug in Client::FindItem()

..
char sName[36];
..

The names of the items get copied into that for the search, however the name field can be upto 60 chars long. Some of the books names go over that, corrupt the stack and crash the zone. I'd attempt to fix it myself but I'd just break something :)

K.

kathgar 01-27-2003 04:50 AM

Fixed, increased the buffer and changed strcpy to strncpy.


All times are GMT -4. The time now is 02:11 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.