Commit Graph
9007 Commits
Author SHA1 Message Date
nhmall a52ff4b946 update .travis.yml 2020-03-07 11:32:50 -05:00
nhmall e20024e42b March 2020 updates 2020-03-06 10:31:51 -05:00
PatR 32b69f5c33 avoid #wizrumorcheck crash on bad rumor input
If either rumors.tru or rumors.fal was empty when makedefs made
'rumors', init_rumors() will set true_rumor_size to -1 to indicate
that rumors aren't available.  It also closes the input file, and
then #wizrumorcheck closed that again, triggering a crash in the
dlb code.

Fortune cookies and oracles work ok (just not very interesting)
when rumors aren't available.  Only the check command had trouble
with that.
2020-03-05 13:55:45 -08:00
nhmall 998893ac32 fixes update 2020-03-04 16:01:50 -05:00
PatR 60bc28154a fix github issue #302 - divide by 0 crash
The traceback points directly to the problem:  divide by 0 happens
if the 'bogusmon' file only contains the "do not edit" line, which
would happen if 'bogusmon.txt' is empty.  makedefs probably ought to
complain about that.

There is now one hardcoded bogus monster to fall back to:  'bogon'.

Random tombstone epitaphs report divide by 0 if their text source is
empty, but it is done by rn2() rather than rn2_for_display_rng() so
is just a warning for pre-release code.  It would crash for release
version though.

I tried placing an empty engravings file and expected similar results
but didn't see any response.  Not sure what that means.

After the fix, empty epitaph file yields blank result so graves that
want a random epitaph won't have any epitaph.

Fixes #302
2020-03-04 15:57:33 -05:00
PatR 7220c9d2d2 more #302 - empty {bogusmon,engrave,epitaph}.txt
Have makedefs add a real data line to the output for the files that
caused trouble when empty.
2020-03-04 15:45:10 -05:00
nhw_cron 0016132ab3 This is cron-daily v1-Jan-20-2020. files updated: Files 2020-03-04 11:43:28 -05:00
nhw_cron b709869f13 This is cron-daily v1-Jan-20-2020. guidebook updated: doc/Guidebook.txt 2020-03-04 11:43:14 -05:00
nhmall abdd3254ae updates for 3.6 March 2020 2020-03-04 10:41:57 -05:00
nhmall 1e5fd608bf update to Install.nt 2020-03-04 10:31:48 -05:00
nhmall 9cd694740d travis bit post-release 2020-01-27 18:17:29 -05:00
nhmall ee15f67a65 fixes36.5 update 2020-01-27 18:11:43 -05:00
nhmall 831dc158b6 post-release 2020-01-27 18:05:25 -05:00
PatR 5146827307 Another VMS tweak
One of the new paragraphs inadvertently duplicated an existing one.
2020-01-27 12:14:19 -08:00
nhmall bd83b6e194 one more missed inconsistency and README updates 2020-01-27 15:05:45 -05:00
PatR 858bd2f376 Readme tweaks
Replace a few tabs, remove a few trailing spaces, and shorten a few
long lines.

Readme still needs another fix:  if falsely claims to contain all bug
fixes since 3.6.4.  I wasn't sure how to reword that so didn't try.

Also, fix a couple of old typos in Install.vms.
2020-01-27 11:53:18 -08:00
nhmall 4302b7404c more typo propagation 2020-01-27 12:56:34 -05:00
nhmall 78d206398d another typo 2020-01-27 12:27:41 -05:00
nhmall b04028ec81 typo 2020-01-27 11:50:19 -05:00
nhmall 0f92e67e6a travis updates 2020-01-27 11:28:21 -05:00
nhw_cron 3b5d78fb5d This is cron-daily v1-Jan-20-2020. guidebook updated: doc/Guidebook.txt 2020-01-27 10:28:12 -05:00
nhmall 62a3bf250f Guidebook date-stamp 2020-01-27 09:27:03 -05:00
nhmall 0305d0ae41 avoid link error with gcc 10 which enables -fno-common by default 2020-01-27 08:46:48 -05:00
PatR eb61690f34 Install.vms update 2020-01-27 02:20:47 -08:00
nhmall 391e100d38 doc/Guidebook.txt update from daily cron 2020-01-26 10:03:15 -05:00
nhmall 9e165b9e2a release prep bits 2020-01-25 23:42:36 -05:00
Bart House fd6ecbaa17 Merge branch 'NetHack-3.6' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6 2020-01-25 17:07:59 -08:00
Bart House 05455f7baa Fall back to executable path if we have trouble converting known path. 2020-01-25 17:07:45 -08:00
PatR 2b5dc80278 unix 'make clean' update
Remove dat/gitinfo.txt which has been getting overlooked.
Hardly urgent, but useful if this is the last 3.5.x release.
2020-01-25 12:08:28 -08:00
nhmall 24f2e098c5 Xcode build fixes 2020-01-25 12:34:06 -05:00
nhmall f72df6c21f exec commands in MSBUILD *.proj files didn't handle spaces in directory names 2020-01-25 12:23:54 -05:00
nhmall 30fc4b9e05 windows vsprintf bit 2020-01-20 20:59:41 -05:00
nhmall 775519f851 more vsnprintf 2020-01-20 19:22:18 -05:00
nhmall d61bfc98b4 more vsnprintf 2020-01-20 18:14:19 -05:00
nhmall b6efb765dc update README and patchlevel.h 2020-01-20 16:58:12 -05:00
nhmall 92deddd6a3 use vsnprintf instead of vsprintf in pline.c 2020-01-20 16:09:00 -05:00
PatR f3def5c0b9 command line triggered buffer overruns
Prevent extremely long command line arguments from overflowing local
buffers in raw_printf or config_error_add.  The increased buffer
sizes they recently got to deal with long configuration file values
aren't sufficient to handle command line induced overflows.

choose_windows(core): copy and truncate the window_type argument in
case it gets passed to config_error_add().

process_options(unix): report bad values with "%.60s" so that vsprintf
will implicitly truncate when formatted by raw_printf().
2020-01-20 16:08:59 -05:00
nhmall a8208b44c8 fixes update 2020-01-16 10:18:37 -05:00
Pasi Kallinen f4ab235b81 Prevent accessing outside the mons array
Fix another out-of-bounds error
Monster trying to decide if a tin could cure stoning looking at
a special or empty tin would do acidic(&mons[-1])
2020-01-16 10:14:16 -05:00
nhw_cron c8fbb3b7b1 This is cron-daily v1-Jan-14-2020. guidebook updated: doc/Guidebook.txt 2020-01-14 22:20:38 -05:00
nhw_cron f413248d79 This is cron-daily v1-Jan-14-2020. files updated: Files 2020-01-14 22:20:24 -05:00
nhmall 4b052f753e Merge branch 'NetHack-3.6-housekeeping-for-3.6.5' into NetHack-3.6 2020-01-14 21:58:55 -05:00
PatR deccf6a796 fix sym_val() buffer overrun fix
Fix a mistake in commit 74de7d31e0.
Copy+paste error resulted in 'strval + 1' when 'strval' is required.
2020-01-14 14:34:03 -08:00
nhw_cron b21b99d433 This is cron-daily v1-Jan-14-2020. manpages updated: mnh.txt 2020-01-14 11:55:59 -05:00
nhw_cron 466a126e39 This is cron-daily v1-Jan-14-2020. manpages updated: mn.txt 2020-01-14 11:55:45 -05:00
nhw_cron 144aabce94 This is cron-daily v1-Jan-14-2020. files updated: Files 2020-01-14 11:53:00 -05:00
nhw_cron 35634fab8e This is cron-daily v1-Jan-14-2020. manpages updated: recover.txt 2020-01-14 11:52:38 -05:00
nhw_cron 7ac4e0fd06 This is cron-daily v1-Jan-14-2020. manpages updated: nethack.txt 2020-01-14 11:52:19 -05:00
nhw_cron cc3570a7d9 This is cron-daily v1-Jan-14-2020. manpages updated: makedefs.txt 2020-01-14 11:52:00 -05:00
nhw_cron 36736f2cf7 This is cron-daily v1-Jan-14-2020. manpages updated: lev_comp.txt 2020-01-14 11:51:36 -05:00