wordexp cannot use we_offs unless WRDE_DOOFFS flag is set
authorRich Felker <dalias@aerifal.cx>
Sat, 25 Jun 2011 22:54:33 +0000 (18:54 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 25 Jun 2011 22:54:33 +0000 (18:54 -0400)
commit6250c0be4b56ca42b8b4db1d2b9d672811378dc0
tree6648d99dffd0633e9fca57e31b3048b1b872bce1
parentfebbd12d00883a716a9edca25011f8aa306b859b
wordexp cannot use we_offs unless WRDE_DOOFFS flag is set

previously, a potentially-indeterminate value from we_offs was being
used, resulting in wrong we_wordc and subsequent crashes in the
caller.
src/misc/wordexp.c