<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;f=30" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Forum: SmaugFUSS</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;f=30</link>
  <description>The largest Smaug community resource site. - General support for issues specific to SmaugFUSS. Covers coding, building, development, administration, and bug reports.</description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>A Bash Startup Script</title>
   <link>https://smaugmuds.afkmods.com/topic/a-bash-startup-script-5012/&amp;p=24397#p24397</link>
   <description>I dont like tch, so here is a bash script, it also does some log management, keeping the last 3 logs only.  [code] #!/bin/bash # Set the port number (default 4000 or from first argument) port=4000 if [ -n &amp;quot;$1&amp;quot; ]; then port=&amp;quot;$1&amp;quot; fi # Change to area directory cd ../area || { echo &amp;quot;Failed to change directory to ../area&amp;quot;; exit 1; } # Set limits, needed in ubuntu to get core files, also need to give users permissions to /var/lib/systemd/coredump/ to write dumps to ulimit -c u</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/a-bash-startup-script-5012/&amp;p=24397#p24397</guid>
   <pubDate>Sat, 7 Feb 2026 15:49:50 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (eldhamud)</author>
  </item>
  <item>
   <title>mudstrlcpy and mudstrlcat</title>
   <link>https://smaugmuds.afkmods.com/topic/mudstrlcpy-and-mudstrlcat-5007/&amp;p=24357#p24357</link>
   <description>BTW, looking at some things a bit more closely, I think that str_dup should get the same treatment since it&#039;s literally duplicating the purpose of the standard C strdup function. strdup was apparently added to GlibC in the very early 2000&#039;s so it&#039;s definitely much more widespread as a result.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudstrlcpy-and-mudstrlcat-5007/&amp;p=24357#p24357</guid>
   <pubDate>Sat, 18 Jan 2025 17:23:34 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>mudstrlcpy and mudstrlcat</title>
   <link>https://smaugmuds.afkmods.com/topic/mudstrlcpy-and-mudstrlcat-5007/&amp;p=24356#p24356</link>
   <description>Heh, the payoff was immediate upon compiling AFKMud. It located 2 improper uses where our homebrew functions failed to identify buffer overruns during the compile. I imagine it&#039;s likely to find similar in the rest of the bases.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudstrlcpy-and-mudstrlcat-5007/&amp;p=24356#p24356</guid>
   <pubDate>Sat, 18 Jan 2025 16:53:59 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>mudstrlcpy and mudstrlcat</title>
   <link>https://smaugmuds.afkmods.com/topic/mudstrlcpy-and-mudstrlcat-5007/&amp;p=24355#p24355</link>
   <description>At some point in the past, a huge effort was expended to incorporate support for strlcpy and strlcat into all of the FUSS codebases (and AFKMud). Since these functions, at the time, were only available on OpenBSD systems, everyone else essentially had to hand roll their own versions. Which we did in the form of mudstrlcpy and mudstrlcat. Fast forward to the modern age and apparently the strlcpy and strlcat functions were formally accepted into GlibC 2.38 in 2023. This means anyone compiling o</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudstrlcpy-and-mudstrlcat-5007/&amp;p=24355#p24355</guid>
   <pubDate>Sat, 18 Jan 2025 16:33:18 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>Array out of bounds  ?</title>
   <link>https://smaugmuds.afkmods.com/topic/array-out-of-bounds---5005/&amp;p=24350#p24350</link>
   <description>I agree but never know sometimes that might make one not complain lol depends on what its looking for :) It would have been cool if it liked &amp;lt;= 7 but is complaining about &amp;lt; 8.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/array-out-of-bounds---5005/&amp;p=24350#p24350</guid>
   <pubDate>Thu, 16 Jan 2025 04:48:58 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Remcon)</author>
  </item>
  <item>
   <title>Array out of bounds  ?</title>
   <link>https://smaugmuds.afkmods.com/topic/array-out-of-bounds---5005/&amp;p=24349#p24349</link>
   <description>&amp;lt;=7 would be functionally equal to &amp;lt; 8 in this case.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/array-out-of-bounds---5005/&amp;p=24349#p24349</guid>
   <pubDate>Thu, 16 Jan 2025 00:44:42 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>Array out of bounds  ?</title>
   <link>https://smaugmuds.afkmods.com/topic/array-out-of-bounds---5005/&amp;p=24348#p24348</link>
   <description>it doesn&#039;t look bad but would it be happier if you did &amp;lt;= 7?</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/array-out-of-bounds---5005/&amp;p=24348#p24348</guid>
   <pubDate>Wed, 15 Jan 2025 19:01:45 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Remcon)</author>
  </item>
  <item>
   <title>Array out of bounds  ?</title>
   <link>https://smaugmuds.afkmods.com/topic/array-out-of-bounds---5005/&amp;p=24346#p24346</link>
   <description>I ran a static analysis recently with cppcheck and it picked this up as an out of bound array access in the first set of for loops here. Specifically with board-&amp;gt;board[x][y] = 0; I can&#039;t figure out why that would be the case. The compiler doesn&#039;t flag it, and it doesn&#039;t set off the sanitization code either. [code]static void init_board( GAME_BOARD_DATA * board ) { int x, y; for( x = 0; x &amp;lt; 8; x++ ) for( y = 0; y &amp;lt; 8; y++ ) board-&amp;gt;board[x][y] = 0; board-&amp;gt;bo</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/array-out-of-bounds---5005/&amp;p=24346#p24346</guid>
   <pubDate>Tue, 14 Jan 2025 22:00:44 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>time_update</title>
   <link>https://smaugmuds.afkmods.com/topic/timeupdate-5003/&amp;p=24343#p24343</link>
   <description>yeah I noticed lol. I only seen it because I spent all day adding it into LOP and then I was looking around to see maybe where it came from found the snippet for it and while reading it I was like blah i don&#039;t feel like getting permission so I did a difference of my code and the one i last released and added all the changes not weather related back in lol just finished doing all that.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/timeupdate-5003/&amp;p=24343#p24343</guid>
   <pubDate>Sun, 12 Jan 2025 21:53:08 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Remcon)</author>
  </item>
  <item>
   <title>time_update</title>
   <link>https://smaugmuds.afkmods.com/topic/timeupdate-5003/&amp;p=24342#p24342</link>
   <description>Indeed, either way, good catch. I bet that&#039;s why we left it like it was at the time that code was added to the base. It&#039;s not native Smaug.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/timeupdate-5003/&amp;p=24342#p24342</guid>
   <pubDate>Sun, 12 Jan 2025 21:44:22 CST</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Samson)</author>
  </item>
 </channel>
</rss>
