On Mon, Nov 06, 2006 at 11:47:55PM +0000, Tomas Groth wrote:

> Modified files:
>       .              : ChangeLog 
>       backend        : sound_handler_sdl.cpp 
> 
> Log message:
>       Added some asserts, and some 0-index fixes.
> 

[...]

> +                                     // Test if we will get problems... 
> Should not happen...
> +                                     assert(sound->raw_position + 
> sound->raw_data_size-1 - sound->raw_position < sound->raw_data_size);
> +


Note: ( A + B - 1 - A < B ) == ( B - 1  < B ) == *always true*
... unless B is unsigned and B-1 overflows it ...

(there are three occurrences of such an assertion)

---strk;


_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to