*sigh* this code is interesting: assume you want to output via shf to
a string buffer whose window size is currently 32 (initial), your data is 96 bytes, this routine used to resize the buffer to 64, append your first 64 bytes to it (no matter if there's already something in it) and then writes the remaining bytes to stdio fd instead of the string… if it doesn’t SIGABRT before discovered by wbx@ – thanks – bug inherited from pdksh 5.2.14 (AD 1999)
This commit is contained in:
4
sh.h
4
sh.h
@@ -150,9 +150,9 @@
|
||||
#endif
|
||||
|
||||
#ifdef EXTERN
|
||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.398 2010/07/17 22:09:38 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.399 2010/07/19 22:41:03 tg Exp $");
|
||||
#endif
|
||||
#define MKSH_VERSION "R39 2010/07/17"
|
||||
#define MKSH_VERSION "R39 2010/07/19"
|
||||
|
||||
#ifndef MKSH_INCLUDES_ONLY
|
||||
|
||||
|
Reference in New Issue
Block a user