Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register


This is a discussion on "Smaug bug" in the Top Mud Sites MUD Coding forum :

Hey, lookie what I found while scouring code, a genuine bug that nobody seems to have addressed yet! act_wiz.c, do_vsearch: if (argi<0 && argi>20000) { send_to_char( "Vnum out of range.\n\r", ch); return; } See the problem? argi cannot be BOTH less than 0 AND greater than 20000, so this check will always drop through to the code below. Simple fix. Change the && to || and recompile. Of course you'll also want to make sure that 20000 is an appropriate upper bounds for your mud. This appears to be ...



You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our MUD community today!

If you have any problems with the registration process or your account login, please contact us.

If you are a registered member of the old TMS forums, please click here
Reply
 
LinkBack Thread Tools
Old 10-23-2002, 06:57 AM   #1
Samson
Member
 
Samson's Avatar
 
Join Date: Apr 2002
Location: California, USA
Home MUD: Alsherok
Posts: 169
Samson is on a distinguished road
Hey, lookie what I found while scouring code, a genuine bug that nobody seems to have addressed yet!

act_wiz.c, do_vsearch:

if (argi<0 && argi>20000)
{
send_to_char( "Vnum out of range.\n\r", ch);
return;
}

See the problem? argi cannot be BOTH less than 0 AND greater than 20000, so this check will always drop through to the code below. Simple fix. Change the && to || and recompile. Of course you'll also want to make sure that 20000 is an appropriate upper bounds for your mud.

This appears to be present in 1.02a, 1.4a, and every other derivitive I've been able to find. Apparently such an obscure command nobody ever noticed it before.
Samson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools


Smaug bug - Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for new and exp. players - SMAUG MUD Greetmir Advertising for Players 0 04-29-2005 11:39 AM
Chronicles/Smaug Mud CTA Advertising for Staff 0 05-16-2003 11:15 PM
SSET in SMAUG Nostrum Newbie Help 6 08-05-2002 06:03 PM
smaug Blank Deed Newbie Help 3 07-24-2002 11:19 AM
Smaug Code Help Please Klered MUD Coding 2 07-12-2002 09:42 PM

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -4. The time now is 07:49 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Style based on a design by Essilor
Copyright Top Mud Sites.com 2007