[augeas-devel] [Augeas] #294: Invalid read of size 8 with square lens
Augeas
trac at fedorahosted.org
Sat Aug 11 21:51:05 UTC 2012
#294: Invalid read of size 8 with square lens
------------------------+---------------------
Reporter: fgiraldeau | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.8.0
Keywords: | Blocked By:
Blocking: |
------------------------+---------------------
The bug can be reproduced with the attached lens on the master branch.
Here is the output of Valgrind showing the error:
{{{
==17782== Invalid read of size 8
==17782== at 0x5129554: __stpncpy_sse2_unaligned (strcpy-
sse2-unaligned.S:297)
==17782== by 0x4E5BC33: enc_format (lens.c:972)
==17782== by 0x4E6BB9A: regexp_match_error (put.c:119)
==17782== by 0x4E6C099: split_concat (put.c:228)
==17782== by 0x4E6D857: create_concat (put.c:689)
==17782== by 0x4E6DBD6: create_lens (put.c:762)
==17782== by 0x4E6CBBF: put_subtree (put.c:453)
==17782== by 0x4E6D6AC: create_subtree (put.c:659)
==17782== by 0x4E6DC06: create_lens (put.c:768)
==17782== by 0x4E6D236: put_quant_star (put.c:557)
==17782== by 0x4E6D622: put_lens (put.c:641)
==17782== by 0x4E6CFE1: put_concat (put.c:511)
==17782== Address 0x66969e0 is 0 bytes inside a block of size 4 alloc'd
==17782== at 0x4C29DB4: calloc (in /usr/lib/valgrind
/vgpreload_memcheck-amd64-linux.so)
==17782== by 0x4E47502: mem_alloc_n (memory.c:66)
==17782== by 0x4E6BD25: make_split (put.c:158)
==17782== by 0x4E6CB22: put_subtree (put.c:448)
==17782== by 0x4E6D6AC: create_subtree (put.c:659)
==17782== by 0x4E6DC06: create_lens (put.c:768)
==17782== by 0x4E6D236: put_quant_star (put.c:557)
==17782== by 0x4E6D622: put_lens (put.c:641)
==17782== by 0x4E6CFE1: put_concat (put.c:511)
==17782== by 0x4E6D5DD: put_lens (put.c:632)
==17782== by 0x4E6D516: put_square (put.c:603)
==17782== by 0x4E6D661: put_lens (put.c:650)
}}}
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/294>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list