A fix for bug 1497004 (https://sourceforge.net/tracker/index.php?func=detail&aid=1497004&group_id=9746&atid=109746), where a segfault will happen if you polymorph back from a giant while carrying more than 52 items because of carrying boulders and then try to drop some.
Fixed patch
Oops, first patch had two off-by-one errors; fixed.
File Added: DIFF.txt