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

bugzilla at redhat.com bugzilla at redhat.com
Fri Sep 7 06:07:38 UTC 2018


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

            Bug ID: 1626346
           Summary: dht: Use snprintf in dht_filter_loc_subvol_key
           Product: GlusterFS
           Version: mainline
         Component: distribute
          Assignee: bugs at gluster.org
          Reporter: nbalacha at redhat.com
                CC: bugs at gluster.org



Description of problem:

The recent changes to use malloc instead of calloc left the strings new_name
and new_path non-null terminated because they were initialised using strncpy.

Use snprintf instead to make sure they are NULL terminated.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list