File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3342,4 +3342,5 @@ The following changes to date are:
3342
3342
- Restore auto-suppression of some dangerous attacks
3343
3343
- Fix: crash when examining discoveries with '`' in certain cases
3344
3344
- Fix: allow spear traps to be disarmed
3345
+ - Fix: heap-use-after-free (bones)
3345
3346
Original file line number Diff line number Diff line change @@ -788,9 +788,9 @@ struct obj *corpse;
788
788
store_savefileinfo (fd );
789
789
bwrite (fd , (genericptr_t ) & c , sizeof c );
790
790
bwrite (fd , (genericptr_t ) bonesid , (unsigned ) c ); /* DD.nnn */
791
- savefruitchn (fd , WRITE_SAVE | FREE_SAVE );
791
+ savefruitchn (fd , WRITE_SAVE );
792
792
update_mlstmv (); /* update monsters for eventual restoration */
793
- savelev (fd , ledger_no (& u .uz ), WRITE_SAVE | FREE_SAVE );
793
+ savelev (fd , ledger_no (& u .uz ), WRITE_SAVE );
794
794
bclose (fd );
795
795
commit_bonesfile (& u .uz );
796
796
compress_bonesfile ();
You can’t perform that action at this time.
0 commit comments