-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Labels
Description
stephenmathieson at UTA in ~/repos/github.com/littlstar/b64.c on master
$ valgrind ./test
==1936== Memcheck, a memory error detector
==1936== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==1936== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==1936== Command: ./test
==1936==
==1936== Invalid write of size 1
==1936== at 0x400E13: b64_encode (in ~/repos/github.com/littlstar/b64.c/test)
==1936== by 0x400815: main (in ~/repos/github.com/littlstar/b64.c/test)
==1936== Address 0x51f1128 is 0 bytes after a block of size 8 alloc'd
==1936== at 0x4C2B7B2: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1936== by 0x400DED: b64_encode (in ~/repos/github.com/littlstar/b64.c/test)
==1936== by 0x400815: main (in ~/repos/github.com/littlstar/b64.c/test)
==1936==
==1936== Invalid write of size 1
==1936== at 0x400E4D: b64_encode (in ~/repos/github.com/littlstar/b64.c/test)
==1936== by 0x400815: main (in ~/repos/github.com/littlstar/b64.c/test)
==1936== Address 0x51f11ca is 0 bytes after a block of size 10 alloc'd
==1936== at 0x4C2B7B2: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1936== by 0x400E3D: b64_encode (in ~/repos/github.com/littlstar/b64.c/test)
==1936== by 0x400815: main (in ~/repos/github.com/littlstar/b64.c/test)
==1936==
==1936== Conditional jump or move depends on uninitialised value(s)
==1936== at 0x400826: main (in ~/repos/github.com/littlstar/b64.c/test)
==1936==
==1936== Conditional jump or move depends on uninitialised value(s)
==1936== at 0x400839: main (in ~/repos/github.com/littlstar/b64.c/test)
==1936==
test: test.c:28: main: Assertion `0 == strcmp("YnJhZGxleQ==", (char *) b64_encode((const unsigned char *) "bradley", strlen((char *) (const unsigned char *) "bradley")))' failed.
==1936==
==1936== HEAP SUMMARY:
==1936== in use at exit: 13 bytes in 1 blocks
==1936== total heap usage: 11 allocs, 10 frees, 643 bytes allocated
==1936==
==1936== LEAK SUMMARY:
==1936== definitely lost: 13 bytes in 1 blocks
==1936== indirectly lost: 0 bytes in 0 blocks
==1936== possibly lost: 0 bytes in 0 blocks
==1936== still reachable: 0 bytes in 0 blocks
==1936== suppressed: 0 bytes in 0 blocks
==1936== Rerun with --leak-check=full to see details of leaked memory
==1936==
==1936== For counts of detected and suppressed errors, rerun with: -v
==1936== Use --track-origins=yes to see where uninitialised values come from
==1936== ERROR SUMMARY: 6 errors from 4 contexts (suppressed: 2 from 2)
Aborted
stephenmathieson at UTA in ~/repos/github.com/littlstar/b64.c on master
$
Reactions are currently unavailable