Overview
Artifact ID: | d89aaafa62fb79043a2083f37d30de2961b345a7 |
---|---|
Ticket: | 6dba56543b89dc41463174c63c9f11e798c9cfb4
fossil ticket --quote segfaults when adding to the comment |
User & Date: | mistachkin 2012-08-08 03:47:31 |
Changes
- Appended to comment:
<hr /><i>mistachkin added on 2012-08-08 03:47:31 UTC:</i><br /> Reading the code, I'm somewhat confused about the proposed fix. Perhaps it be something like this instead, given the nature of the other <b>if</b> block enclosed with <b>if( tktEncoding == tktFossilize )</b>? <verbatim> Index: src/tkt.c ================================================================== --- src/tkt.c +++ src/tkt.c @@ -1167,11 +1167,11 @@ }else{ blob_appendf(&tktchng, "J%s%s %#F\n", zPfx, azField[i], strlen(zValue), zValue); } if( tktEncoding == tktFossilize ){ - free(azValue[i]); + free(zFValue); } } blob_appendf(&tktchng, "K %s\n", zTktUuid); blob_appendf(&tktchng, "U %F\n", zUser); md5sum_blob(&tktchng, &cksum); </verbatim>
- resolution changed to: "Open"