Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Yesterday, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, DotBot, Bing, Google, Yahoo!

Members: 0
Guests: 2
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » 2 memory mismatch errors in f...
Forum Rules | Mark all | Recent Posts

2 memory mismatch errors in fread_sysdata
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Dec 17, 2008, 2:33 am
Go to the top of the page
Go to the bottom of the page

Keberus
Conjurer
GroupFUSS Project Team
Posts341
JoinedJun 4, 2005

in db.c the function fread_sysdata
            KEY( "Guildoverseer", sys->guild_overseer, fread_string( fp ) );
            KEY( "Guildadvisor", sys->guild_advisor, fread_string( fp ) );


should be (to match everywhere else)
            KEY( "Guildoverseer", sys->guild_overseer, fread_string_nohash( fp ) );
            KEY( "Guildadvisor", sys->guild_advisor, fread_string_nohash( fp ) );


No biggie, but its still a mismatch
       
Post is unread #2 Dec 17, 2008, 8:48 am
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

Actually it could be a biggie, if somebody tried to free those using the wrong routine it could crash the game. Good catch.
       
Post is unread #3 Dec 17, 2008, 1:24 pm
Go to the top of the page
Go to the bottom of the page

Keberus
Conjurer
GroupFUSS Project Team
Posts341
JoinedJun 4, 2005

DavidHaley said:

Actually it could be a biggie, if somebody tried to free those using the wrong routine it could crash the game. Good catch.


Hmm, I thought the DISPOSE and STRFREE macros had protection against that built in? Where before anything is done the hash table is checked. It's all good at any rate.
       
Post is unread #4 Dec 17, 2008, 5:39 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

The protection on those macros only works with a C++ base. So the Star Wars code never got it.
       
Post is unread #5 Dec 18, 2008, 6:39 am
Go to the top of the page
Go to the bottom of the page

Keberus
Conjurer
GroupFUSS Project Team
Posts341
JoinedJun 4, 2005

Hmm, I guess it must've been a perk for switching to g++ early on then. Well I definitly reccomend the new macros get put in SWRfuss and SWfotefuss then, because they are hella nice, and make it easy to catch some of those memory mismatches.
       
Pages:<< prev 1 next >>