]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: fix label parsing and validation
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 26 Apr 2019 20:40:10 +0000 (15:40 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 26 Apr 2019 20:40:10 +0000 (15:40 -0500)
commit1bce8fe6d7082a813a3c1444b8534385508da4a1
treeba47eed2d8e4fa222ed0eeebdc07a3ed23b42851
parentae2883e3422b72c92af189a2d7361e0f01ffd8a5
xfs_io: fix label parsing and validation

When we're trying to set a new label, check the length to make sure we
won't overflow the label size, and size label[] so that we can use
strncpy without static checker complaints.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/label.c