wpabuf: Add WPA_TRACE code to validate correct freeing of wpabuf
commiteeb04821ad18ae358c0d45a8877adb393ba65eef
authorJouni Malinen <j@w1.fi>
Sun, 20 Dec 2009 11:11:31 +0000 (20 13:11 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Dec 2009 11:11:31 +0000 (20 13:11 +0200)
tree800a1fcb55ede3a517dd8f010c5c3c745a20a447
parent859db534bf29e360adfdc7da6a0bf0ad86fc1ec2
wpabuf: Add WPA_TRACE code to validate correct freeing of wpabuf

Use an extra header to move the returned pointer to break os_free()
or free() of the returned value and verify that the correct magic
is present when freeing or resizing the wpabuf. Show backtrace on
invalid wpabuf use.
src/utils/wpabuf.c