PatR
10a9d358c5
hypothetical buffer overruns
...
doprtool() and doprinuse() collect the inventory letters of all
applicable items into a buffer capable of holding 52 letters plus
terminator. It is possible to have more than 52 items (ignoring
gold) so theoretically possible to have more than 52 separate lit
candles. Guard against that.
The easiest way to get an item in the overflow slot is to carry
52 non-boulders, polymorph into a giant, and pick up a boulder.
Assigning the latter to one of the three weapon slots would not
impact doprtool() but it will impact doprinuse(). However, that
wasn't enough to cause a crash for me; evidently the overflow
clobbered something innocuous. (52+boulder is not the only way
to get something into slot '#', just the only guaranteed one I
can think of offhand.)
This also removes a bunch of 'register' type qualifiers.
2021-02-27 17:13:17 -08:00
..
2021-01-03 13:37:25 -06:00
2021-01-03 13:37:25 -06:00
2021-02-14 00:57:34 -08:00
2021-01-26 21:06:16 -05:00
2021-02-03 10:55:07 -05:00
2021-01-26 21:06:16 -05:00
2021-02-02 19:03:12 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-02-02 16:06:25 -05:00
2021-02-18 23:54:30 -08:00
2021-01-26 21:06:16 -05:00
2021-01-30 19:06:27 -08:00
2021-02-18 23:54:30 -08:00
2021-02-03 10:55:07 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-02-19 10:40:41 +01:00
2021-01-26 21:06:16 -05:00
2021-02-02 19:03:12 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-30 19:06:27 -08:00
2021-01-26 21:06:16 -05:00
2021-02-10 17:06:12 +02:00
2021-02-02 19:03:12 -05:00
2021-02-02 20:46:54 -05:00
2021-02-19 00:25:45 -05:00
2021-01-26 21:06:16 -05:00
2021-02-13 15:15:21 -08:00
2021-01-26 21:06:16 -05:00
2021-02-10 19:22:16 +02:00
2021-01-26 21:06:16 -05:00
2021-02-03 10:55:07 -05:00
2021-02-26 09:47:54 -05:00
2021-02-23 02:42:28 -08:00
2021-02-27 17:13:17 -08:00
2019-07-13 00:17:23 -04:00
2021-02-02 19:03:12 -05:00
2021-01-26 21:06:16 -05:00
2021-02-26 09:05:52 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-02-03 10:55:07 -05:00
2021-01-28 21:11:21 -06:00
2021-01-26 21:06:16 -05:00
2021-02-19 17:09:41 +02:00
2021-01-26 21:06:16 -05:00
2021-01-27 21:04:51 -05:00
2021-01-29 19:19:03 -05:00
2021-02-11 15:38:26 -08:00
2021-02-23 02:04:21 -08:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-02-25 14:11:03 -08:00
2021-01-26 21:06:16 -05:00
2021-02-13 15:16:15 -08:00
2021-02-01 12:54:19 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-28 09:45:16 -05:00
2021-02-10 19:22:16 +02:00
2021-01-31 13:58:19 -05:00
2021-01-26 21:06:16 -05:00
2021-01-30 16:42:36 -08:00
2021-02-19 00:24:45 -08:00
2021-02-02 19:03:12 -05:00
2021-01-29 19:19:03 -05:00
2021-02-02 19:50:07 -05:00
2021-02-17 14:27:00 -08:00
2021-02-06 16:34:41 -08:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-02-10 17:06:12 +02:00
2021-02-20 17:24:25 -08:00
2021-01-26 21:06:16 -05:00
2021-02-02 19:03:12 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-02-02 19:03:12 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-02-02 19:03:12 -05:00
2021-02-19 17:09:41 +02:00
2021-02-02 19:03:12 -05:00
2021-01-29 19:19:03 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-02-02 19:03:12 -05:00
2021-02-02 19:03:12 -05:00
2021-01-26 21:06:16 -05:00
2021-01-30 16:42:36 -08:00
2021-01-26 21:06:16 -05:00
2021-02-03 10:55:07 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-02-02 19:03:12 -05:00
2021-02-01 12:54:19 -05:00
2021-01-26 21:06:16 -05:00
2021-01-29 19:19:03 -05:00
2021-01-26 21:06:16 -05:00
2021-02-02 19:03:12 -05:00