[Bugs] [Bug 1626346] dht: Use snprintf in dht_filter_loc_subvol_key

bugzilla at redhat.com bugzilla at redhat.com
Wed Sep 12 06:26:15 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1626346

Worker Ant <bugzilla-bot at gluster.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|POST                        |MODIFIED



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/21112 committed in master by "Amar Tumballi"
<amarts at redhat.com> with a commit message- dht: Use snprintf instead of strncpy

The recent changes to use malloc instead
of calloc left the new_name and new_path
non-null terminated. We now use snprintf
instead of strncpy to fix this.

Change-Id: I1a31701ca9447efde38921be0ba2c73cde2e7976
fixes: bz#1626346
Signed-off-by: N Balachandran <nbalacha at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=96TujAQwMs&a=cc_unsubscribe


More information about the Bugs mailing list