PDA

View Full Version : Crash searching for items with long names


Kaiyodo
01-26-2003, 08:20 AM
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.