annotate .hgignore @ 1613:96aa7ec74936 draft

Fix yet another sed bug. The s/// command would copy the \ of substitutions before deciding what to do with them (generally overwriting the \ with the new data). When the substitution was A) at the very end of the new string, B) resolved to nothing, it could leave a trailing \ that didn't belong there and didn't get overwritten because the "copy trailing data" part that copies the original string's null terminator already happened before the \ overwrote it. The ghostwheel() function restarts regexes after embedded NUL bytes, but if the string it's passed is _longer_ than the length it's told then it gets confused (and it means we're off the end of our allocation so segfaults are likely). Fix: test for \ first and move the "copy byte" logic into an else case.
author Rob Landley <rob@landley.net>
date Mon, 15 Dec 2014 03:34:55 -0600
parents ea1bd7561a52
children e618a873a946
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
154
05d80f4dfdb4 Add .hgignore file
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
diff changeset
1 syntax: glob
05d80f4dfdb4 Add .hgignore file
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
diff changeset
2 .config*
249
ea1bd7561a52 Update .hgignore to cover new generated/ directory
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 180
diff changeset
3 generated/
154
05d80f4dfdb4 Add .hgignore file
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
diff changeset
4 kconfig/mconf
180
05a452127fc1 Add kconfig/conf to .hgignore
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 154
diff changeset
5 kconfig/conf
154
05d80f4dfdb4 Add .hgignore file
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
diff changeset
6 toybox
05d80f4dfdb4 Add .hgignore file
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
diff changeset
7 toybox_unstripped