r797 - packages/netpanzer/netpanzer/trunk/debian/patches
Gonéri Le Bouder
goneri-guest at costa.debian.org
Sun Jun 4 15:41:51 UTC 2006
Author: goneri-guest
Date: 2006-06-04 15:41:49 +0000 (Sun, 04 Jun 2006)
New Revision: 797
Modified:
packages/netpanzer/netpanzer/trunk/debian/patches/02_setframe_denial_of_service.patch
Log:
The execption wasn't catched (!?)
Modified: packages/netpanzer/netpanzer/trunk/debian/patches/02_setframe_denial_of_service.patch
===================================================================
--- packages/netpanzer/netpanzer/trunk/debian/patches/02_setframe_denial_of_service.patch 2006-06-04 15:26:56 UTC (rev 796)
+++ packages/netpanzer/netpanzer/trunk/debian/patches/02_setframe_denial_of_service.patch 2006-06-04 15:41:49 UTC (rev 797)
@@ -1,4 +1,3 @@
-# Eddy & Goneri
# use an exception instead of an assert since assert do an exit
--- src/Lib/2D/Surface.hpp.orig 2006-06-04 14:16:29.000000000 +0200
+++ src/Lib/2D/Surface.hpp 2006-06-04 14:09:17.000000000 +0200
@@ -8,10 +7,8 @@
{
- assert(frameNum >= 0.0);
- assert(frameNum < frameCount);
-+ if (frameNum < 0.0 || frameNum >= frameCount) {
-+ throw Exception("frameNum out of range.");
++ if (frameNum < 0.0 || frameNum >= frameCount)
+ return;
-+ }
+
mem = frame0 + (pix.y * stride) * int(frameNum);
}
More information about the Pkg-games-commits
mailing list