Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
games
vultures
nethack-vultures-overflow-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nethack-vultures-overflow-fix.patch of Package vultures
diff -Naur vulture-2.3.67/nethack/src/mhitu.c vulture-2.3.67-new//nethack/src/mhitu.c --- vulture-2.3.67/nethack/src/mhitu.c 2011-04-04 20:23:52.000000000 +0200 +++ vulture-2.3.67-new//nethack/src/mhitu.c 2011-04-10 22:43:01.004321582 +0200 @@ -233,7 +233,7 @@ for(i = 0; i < NATTK; i++) if(mdat->mattk[i].aatyp == AT_ENGL) break; - if (mdat->mattk[i].aatyp != AT_ENGL) + if (i >= NATTK ) impossible("Swallower has no engulfing attack?"); else { if (is_whirly(mdat)) { diff -Naur vulture-2.3.67/slashem/src/mhitu.c vulture-2.3.67-new//slashem/src/mhitu.c --- vulture-2.3.67/slashem/src/mhitu.c 2011-04-04 20:23:53.000000000 +0200 +++ vulture-2.3.67-new//slashem/src/mhitu.c 2011-04-10 22:43:01.160321578 +0200 @@ -315,7 +315,7 @@ for(i = 0; i < NATTK; i++) if(mdat->mattk[i].aatyp == AT_ENGL) break; - if (mdat->mattk[i].aatyp != AT_ENGL) + if (i >= NATTK) impossible("Swallower has no engulfing attack?"); else { if (is_whirly(mdat)) { diff -Naur vulture-2.3.67/unnethack/src/mhitu.c vulture-2.3.67-new//unnethack/src/mhitu.c --- vulture-2.3.67/unnethack/src/mhitu.c 2011-04-04 20:23:53.000000000 +0200 +++ vulture-2.3.67-new//unnethack/src/mhitu.c 2011-04-10 22:44:04.370321579 +0200 @@ -234,7 +234,7 @@ for(i = 0; i < NATTK; i++) if(mdat->mattk[i].aatyp == AT_ENGL) break; - if (mdat->mattk[i].aatyp != AT_ENGL) + if (i >= NATTK) warning("Swallower has no engulfing attack?"); else { if (is_whirly(mdat)) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor