libspeex issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I?m trying to figure out how to create an account on trac to report this, but I found that stack_alloc.h in the imported libspeex is flawed in that the ALIGN macro casts the stack parameter to long.  This is incompatible with LLP64 (and an all around bad assumption to make anyway), since pointer is 64bit and long is 32bit.  The appropriate type to use is intptr_t.  If the stack parameter were allocated in address space beyond 4GB, truncation of the pointer would seem to cause memory corruption or an access violation.  Even without the truncation, beyond 2GB seems like it would have an issue with negative numbers.




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux