[Bugs] [Bug 1609126] New: Fix mem leak and smoke failure for gcc8 in cloudsync

bugzilla at redhat.com bugzilla at redhat.com
Fri Jul 27 04:56:06 UTC 2018


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

            Bug ID: 1609126
           Summary: Fix mem leak and smoke failure for gcc8 in cloudsync
           Product: GlusterFS
           Version: mainline
         Component: unclassified
          Assignee: bugs at gluster.org
          Reporter: spalai at redhat.com
                CC: bugs at gluster.org



Description of problem:

>From https://build.gluster.org/job/fedora-smoke/6/console

11:14:32
/home/jenkins/root/workspace/fedora-smoke/xlators/features/cloudsync/src/cloudsync-plugins/src/cloudsyncs3/src/libcloudsyncs3.c:
In function ‘aws_download_s3’:
11:14:32
/home/jenkins/root/workspace/fedora-smoke/xlators/features/cloudsync/src/cloudsync-plugins/src/cloudsyncs3/src/libcloudsyncs3.c:480:48:
error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a
region of size 1015 [-Werror=format-truncation=]
11:14:32          snprintf(buf, sizeof(buf), "https://%s/%s", priv->hostname,
resource);
11:14:32                                                 ^~                  
~~~~~~~~
11:14:32
/home/jenkins/root/workspace/fedora-smoke/xlators/features/cloudsync/src/cloudsync-plugins/src/cloudsyncs3/src/libcloudsyncs3.c:480:9:
note: ‘snprintf’ output 10 or more bytes (assuming 4105) into a destination of
size 1024
11:14:32          snprintf(buf, sizeof(buf), "https://%s/%s", priv->hostname,
resource);
11:14:32         
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11:14:32 cc1: all warnings being treated as errors
11:14:32 make[10]: *** [Makefile:550: libcloudsyncs3.lo] Error 1


And also sign_req variable in aws_form_request is not freed.

-- 
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