X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/686e83e396696572171fad32f440cc279ab82a75..8f462efe923947cc4e72deea5b0fa93a5f88000d:/ChangeLog diff --git a/ChangeLog b/ChangeLog index 4bb16a83..448e54aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2011-03-09 Akim Demaille + + named references: fix double free. + In `rhs[name]: "a" | "b"', do not free "name" twice. + Reported by Tys Lefering. + + * src/named-ref.h, src/named-ref.c (named_ref_copy): New. + * src/parse-gram.y (current_lhs): Rename as... + (current_lhs_symbol): this. + (current_lhs): New function. Use it to free the current lhs + named reference. + * src/reader.c: Bind lhs to a copy of the current named reference. + * src/symlist.c: Rely on free (0) being valid. + * tests/named-refs.at: Test this. + 2011-03-09 Akim Demaille tests: style changes.