Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot, Yandex

Members: 0
Guests: 13
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
619
Alexander
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,643
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 >>