Package: framewave
Version: 1.1-1
Severity: normal
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu intrepid ubuntu-patch
Hello! This is a patch for an unchecked memory allocation, discovered
when compiling with -D_FORTIFY_SOURCE=2.
Thanks!
-Kees
--
Kees Cook @outflux.net
diff -Nur -x '*.orig' -x '*~' framewave-1.1/Framewave/domain/fwBase/src/system.cpp framewave-1.1.new/Framewave/domain/fwBase/src/system.cpp
--- framewave-1.1/Framewave/domain/fwBase/src/system.cpp 2008-05-16 02:35:49.000000000 -0700
+++ framewave-1.1.new/Framewave/domain/fwBase/src/system.cpp 2008-06-28 18:23:42.000000000 -0700
@@ -86,7 +86,7 @@
void *AlignedMalloc ( size_t length )
{
void *memptr;
- posix_memalign ( &memptr, 32, length );
+ if (posix_memalign ( &memptr, 32, length ) != 0) memptr = NULL;
return memptr;
}
#endif