Project

General

Profile

Bug #40747

Updated by Nathan Cutler almost 5 years ago

The OpenSUSE Build Service takes various precautions designed to prevent vectors for malicious code execution from entering the operating system. One of these checks is now failing for the most recent build of Ceph master: 

 <pre> 
 [ 7240s] I: Program returns random data in a function 
 [ 7240s] E: ceph no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/ceph-15.0.0-2657-ge41b17ad50/src/rgw/rgw_rest_s3.cc:3577 
 [ 7240s]  
 [ 7240s] I: Program returns random data in a function 
 [ 7240s] E: ceph no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/ceph-15.0.0-2657-ge41b17ad50/src/rgw/rgw_rest_s3.cc:3577 
 </pre> 

 The problematic code, introduced by 4ffc765c4c5debc665ade7769c4647c3a7278fd2, is: 

 <pre> 
 RGWOp *RGWHandler_REST_Bucket_S3::get_obj_op(bool get_data) 
 { 
   // Non-website mode 
   int list_type = 1; 
   s->info.args.get_int("list-type", &list_type, 1);  

    // Non-website mode      // Non-website mode 
   if (get_data) {    
     if (list_type == 1) { 
        return new RGWListBucket_ObjStore_S3;     
     } else if(list_type == 2) { 
       return new RGWListBucket_ObjStore_S3v2; 
     } } else { 
     return new RGWStatBucket_ObjStore_S3;     
   }     }  
 </pre>

Back