While inode is updated it is possible that Garbage Collection is called which caused overwrite of inode's filename as the same buffer was used to keep the filename and copping data in GC.
This patch uses buffer on the stack for keeping filename while inode is updated which fix the issue. The patch cause 256 B increase of stack consumption. Signed-off-by: Andrzej Puzdrowski <[email protected]> [ Full content available at: https://github.com/apache/mynewt-nffs/pull/9 ] This message was relayed via gitbox.apache.org for [email protected]
