]> asedeno.scripts.mit.edu Git - linux.git/commit
afs: xattr: use scnprintf
authorMark Salyzyn <salyzyn@android.com>
Thu, 21 Nov 2019 09:12:17 +0000 (09:12 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 21 Nov 2019 09:12:17 +0000 (09:12 +0000)
commit2e2fae99d1f308742b9b05dfd749e64b11960732
treeccd1ddd022dcf735748d9b6a05e9828d559d18bc
parentd4438a25295d87d189e1925e0f7de2edcfe66582
afs: xattr: use scnprintf

sprintf and snprintf are fragile in future maintenance, switch to
using scnprintf to ensure no accidental Use After Free conditions
are introduced.

Signed-off-by: Mark Salyzyn <salyzyn@android.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-fsdevel@vger.kernel.org
Cc: David Howells <dhowells@redhat.com>
Cc: linux-afs@lists.infradead.org
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/xattr.c