diff options
| author | Eric Blake <eblake@redhat.com> | 2020-06-22 16:03:55 -0500 |
|---|---|---|
| committer | Eric Blake <eblake@redhat.com> | 2020-07-13 09:01:01 -0500 |
| commit | 00d69986da83a74f6f5731c80f8dd09fde95d19a (patch) | |
| tree | 3a8c5766dd57a2e858cb930542f9044bfd6378f9 /scripts/git-submodule.sh | |
| parent | 00ce6c36b35e0eb8cc5d68a28f288a6335848813 (diff) | |
| download | focaccia-qemu-00d69986da83a74f6f5731c80f8dd09fde95d19a.tar.gz focaccia-qemu-00d69986da83a74f6f5731c80f8dd09fde95d19a.zip | |
nbd: Avoid off-by-one in long export name truncation
When snprintf returns the same value as the buffer size, the final byte was truncated to ensure a NUL terminator. Fortunately, such long export names are unusual enough, with no real impact other than what is displayed to the user. Fixes: 5c86bdf12089 Reported-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20200622210355.414941-1-eblake@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'scripts/git-submodule.sh')
0 files changed, 0 insertions, 0 deletions