Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-10-2006, 01:25 PM
LostZaphod
Sarnak
 
Join Date: May 2006
Posts: 43
Default Items

FatherNitwit could you please look into this?....

To make a long story short (trying to find why lvl 60 monk can crash world.exe) i found out that there is a over run when loading the items.

The message I receive is (windows 2003 server, ms vstudio 2003 1.1)

"run-time check failure #2 stack around variable 'item' was corrupeted"

the cause of the error is the items.filename in the database is varchar(32) and the filename in the item_struct.h is "char Filename[15];"

inside of shareddb.cpp
strcpy(item.Filename,row[ItemField::filename]);
is used to copy the database item into memory. strcpy does not check the boundry and over rights memory of items after the structure (Filename[15] is at the end of the structure)

I made this sql to adjust the items table, but it just gets around the issue.
update `items` set filename=substring(filename,1,15) where length(filename) > 15

Is the "Filename" field to be 32 or 15 characters?.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:33 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3