Fix a 64-bit segfault in kdenlive
authorRay Lehtiniemi <rayl@mail.com>
Wed, 8 Apr 2009 04:14:20 +0000 (22:14 -0600)
committerRay Lehtiniemi <rayl@mail.com>
Wed, 8 Apr 2009 04:19:51 +0000 (22:19 -0600)
commitf13ee0890b643f2c2eb220290f8374c80605a505
treec981fd4aaa50c5f3283df17358c0c70c9f3e389b
parent3902731cb8a9622204d584c4962c74e2a5a35428
Fix a 64-bit segfault in kdenlive

To reproduce:
 - create a new project
 - create a color clip
 - add clip to timeline
 - set an in point on the clip
 - add the box blur effect

The segfault happens because we take the negative of an unsigned
integer. This works out to a signed 32 bit value on a 64 bit
platform, which causes the rgb array bounds to be exceeded.

Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
src/modules/kdenlive/filter_boxblur.c