Red Hat Bugzilla – Bug 229339
amtapetype exits with free(): invalid pointer
Last modified: 2007-11-30 17:11:57 EST
Description of problem:
amtapetype, on exit, attempts to free memory it shouldn't
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.amtapetype -o -f /dev/st0 -e 74G -b 128 -t CX450-TP
Fix is to mod tape-src/tapetype.c and in main(), near the end, rather than calls
to free(randombytes), call free(prandombytes) - randombytes can be different to
the allocated memory due to page alignment - prandombytes is the address of what
was allocated. If you upgrade to a later version of amanda (eg amanda-2.5.1p3)
amtapetype doesn't have this problem as it doesn't free memory before exiting.
Actualy the latest version in devel is amanda-2.5.1p3, where amtatype doesn't
have this problem (as you wrote), so im closing this as CLOSED:RAWHIDE. FC6 is
maintained for critical bugs and security issues only.