[PATCH 1/1] ui-log: fix data corruption

Christian Hesse list at eworm.de
Fri Oct 7 23:21:23 CEST 2016


"Jason A. Donenfeld" <Jason at zx2c4.com> on Fri, 2016/10/07 21:43:
> Does this ever get freed, though?

I ran cgit in valgrind with this patch applied. No changes in what is lost -
so looks like this is freed later on.

BTW, we have some more places where get_revision() is called. Sometimes we
free the result (ui-atom, ui-log, ui-stats), sometimes we do not (ui-log,
ui-patch).
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20161007/d00a6918/attachment.asc>


More information about the CGit mailing list