<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=182" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: AFKMud 1.56b Released</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=182</link>
  <description>The largest Smaug community resource site. - Last of the 1.5 series</description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>AFKMud 1.56b Released</title>
   <link>https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=672#p672</link>
   <description>After slogging through a few iterations of make/grind/fix leak/repeat, I&#039;ve hit an impasse that is preventing me from reaching the next batch: ==14129== 30161 bytes in 803 blocks are still reachable in loss record 4 of 5 ==14129==    at 0x4002989A: calloc (vg_replace_malloc.c:273) ==14129==    by 0x80FA594: str_alloc (hashstr.c:52) ==14129==    by 0x80D7FF6: fread_string (db.c:618) ==14129==    by 0x815B57B: load_class_file (tables.c:170) Relevant section of load_class_file: case &#039;N&#039;: K</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=672#p672</guid>
   <pubDate>Fri, 10 Oct 2003 22:08:46 CDT</pubDate>
   <category>AFKMud Release Announcements</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>AFKMud 1.56b Released</title>
   <link>https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=680#p680</link>
   <description>*Feindish laugh from the 8th level of hell* DEATH TO LEAKS! *Ahem* There. That felt better. It seems I&#039;ve managed a solution. Copied fread_string and named the copy fread_flagstring. Behaved identically, except only returns a static buffer instead of allocating the result each time. Appears at first look to have fit the bill nicely.  Now to hunt down the remaining little bastards who hide from me in the night and make fun of me.....</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=680#p680</guid>
   <pubDate>Fri, 10 Oct 2003 21:30:43 CDT</pubDate>
   <category>AFKMud Release Announcements</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>AFKMud 1.56b Released</title>
   <link>https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=679#p679</link>
   <description>Point taken about the ego thing. Don&#039;t know why it was capped that way. 90K it is. As for tables.c, changed to fread_string_nohash/DISPOSE Got the following: Fri Oct 10, 2003 4:31:18 PM PDT :: Loading commands... ==10517== Invalid free() / delete / delete[] ==10517==    at 0x400296D7: free (vg_replace_malloc.c:220) ==10517==    by 0x815E21B: fread_command (tables.c:1599) ==10517==    by 0x815E3EB: load_commands (tables.c:1702) ==10517==    by 0x80DACE9: boot_db (db.c:2081) ==10517==    Addres</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=679#p679</guid>
   <pubDate>Fri, 10 Oct 2003 18:37:38 CDT</pubDate>
   <category>AFKMud Release Announcements</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>AFKMud 1.56b Released</title>
   <link>https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=671#p671</link>
   <description>I know obj_ego gets initialized to whatever obj-&amp;gt;rent has, but what I&#039;m puzzled by is why it gets clipped to 90 if it&#039;s over 100K, but from 91K to 99K can be 91 through 99.  In other words, why not clip it at 100, or why not do the clipping for &amp;gt; 90K? IOW:  Why should a weapon worth 95K have a 95 ego, but a weapon worth 500K has only a 90 ego? Hmmm, as to the memory leak... I&#039;m assuming something else has a lock on those shared string buffers.  SInce many of the commands are common words, the </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=671#p671</guid>
   <pubDate>Fri, 10 Oct 2003 08:07:29 CDT</pubDate>
   <category>AFKMud Release Announcements</category>
   <author>nobody@example.com (Quixadhal)</author>
  </item>
  <item>
   <title>AFKMud 1.56b Released</title>
   <link>https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=678#p678</link>
   <description>The fight.c thing is moot. do_murder was taken out and it&#039;s PK checks consolidated into do_kill. The object ego calc is correct, look further up. The variable obj_ego is set to obj-&amp;gt;rent before getting to where you&#039;re looking. The memory leak in tables.c: ==22811== 61112 bytes in 1923 blocks are still reachable in loss record 5 of 6 ==22811==    at 0x4002989A: calloc (vg_replace_malloc.c:273) ==22811==    by 0x80FA4E0: str_alloc (hashstr.c:52) ==22811==    by 0x80D7EEF: fread_string (db.c:545</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=678#p678</guid>
   <pubDate>Thu, 9 Oct 2003 14:30:14 CDT</pubDate>
   <category>AFKMud Release Announcements</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>AFKMud 1.56b Released</title>
   <link>https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=677#p677</link>
   <description>Here&#039;s a possible bug in the item_ego() routine of act_obj.c: [code]   if( obj_ego &amp;gt;= 100000 ) obj_ego = 90; else obj_ego /= 1000; return(obj_ego);[/code] The code above seems to want to cap the return value at 90, but if obj_ego is between 91000 and 99999, it will return 91..99 as a value. Is that intended?  It seems like you&#039;d either want it to retu</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=677#p677</guid>
   <pubDate>Thu, 9 Oct 2003 14:01:40 CDT</pubDate>
   <category>AFKMud Release Announcements</category>
   <author>nobody@example.com (Quixadhal)</author>
  </item>
  <item>
   <title>AFKMud 1.56b Released</title>
   <link>https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=670#p670</link>
   <description>and... one more little memory leak bug... in tables.c, there&#039;s an fread_string to a temp variable around line 1603, it needs to have a companion STRFREE before it goes out of scope: [code] case &#039;F&#039;: if( !str_cmp( word, &amp;quot;flags&amp;quot; ) ) { if( version flags = fread_number( fp ); fMatch = TRUE; break; } else { char *cmdflags = NULL; cha</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=670#p670</guid>
   <pubDate>Fri, 3 Oct 2003 14:06:18 CDT</pubDate>
   <category>AFKMud Release Announcements</category>
   <author>nobody@example.com (Quixadhal)</author>
  </item>
  <item>
   <title>AFKMud 1.56b Released</title>
   <link>https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=676#p676</link>
   <description>I think I found one more little bug in fight.c [code]    WAIT_STATE( ch, 1 * sysdata.pulseviolence ); sprintf( buf, &amp;quot;Help!  I am being attacked by %s!&amp;quot;, IS_NPC( ch ) ? ch-&amp;gt;short_descr : ch-&amp;gt;name ); if ( !IS_PKILL(victim) ) interpret( victim, buf ); [/code] around line 4036, in do_murder, I believe that wants to be something more like &amp;quot;shout Help! I am....&amp;quot;.  The murder verb may not be used very often, so this might not have really shown up.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=676#p676</guid>
   <pubDate>Wed, 1 Oct 2003 13:58:29 CDT</pubDate>
   <category>AFKMud Release Announcements</category>
   <author>nobody@example.com (Quixadhal)</author>
  </item>
  <item>
   <title>AFKMud 1.56b Released</title>
   <link>https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=669#p669</link>
   <description>strlcpy/strlcat return the number of characters that you wanted to copy, which allows for overflow detection by checking if retlen &amp;gt; len (in case that matters, perhaps in data storage or OLC routines). If you want to use the more common strncpy/strncat routines without looping through the source string once (as the strl family does), you can do so, but it will have slightly (function call) more overhead.  To also detect overflows, you&#039;d have to call strlen, which would be not quite double the</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=669#p669</guid>
   <pubDate>Wed, 24 Sep 2003 20:47:34 CDT</pubDate>
   <category>AFKMud Release Announcements</category>
   <author>nobody@example.com (Quixadhal)</author>
  </item>
  <item>
   <title>AFKMud 1.56b Released</title>
   <link>https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=675#p675</link>
   <description>Yes, just checked with a FreeBSD server I have access to. strlcpy and strlcat are both there. They are not present in Cygwin or Linux though. My understanding of the licensing involved is that BSD code is compatible with Diku licensing. While you may be able to charge for BSD licensed products, you are also allowed to use portions of them in product which payment is forbidden for. So I may just go ahead and run the audit on those. Already hacked away at WAY too much to use the patch. No do</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/afkmud-156b-released-182/&amp;p=675#p675</guid>
   <pubDate>Wed, 24 Sep 2003 16:22:35 CDT</pubDate>
   <category>AFKMud Release Announcements</category>
   <author>nobody@example.com (Samson)</author>
  </item>
 </channel>
</rss>
