Merged in masayuki2009/nuttx.apps/fix_redirection_error (pull request #167)
apps/nshlib: Fix buffer overrun when redirected to a file. SAVE_SIZE must be the same as sizeof(struct serialsave_s) Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
parent
38205729f2
commit
060a8fff4b
@ -71,8 +71,9 @@
|
||||
#endif
|
||||
|
||||
/* Size of info to be saved in call to nsh_redirect */
|
||||
/* See struct serialsave_s in nsh_console.c */
|
||||
|
||||
#define SAVE_SIZE (sizeof(int) + sizeof(FILE*) + sizeof(bool))
|
||||
#define SAVE_SIZE (2 * sizeof(int) + 2 * sizeof(FILE*))
|
||||
|
||||
/* Are we using the NuttX console for I/O? Or some other character device? */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user