Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 654720

Summary: media-libs/libomxil-bellagio-0.9.3 with GCC 8.1 - .../work/libomxil-bellagio-0.9.3/src/base/omx_base_component.c:830:3: error: ‘memcpy’ forming offset [13, 36] is out of the bounds [0, 12] of object ‘uuid’ with type ‘OMX_U32[3]’ {aka ‘long unsigned int[3]
Product: Gentoo Linux Reporter: Mike Lothian <mike>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED WONTFIX    
Severity: normal CC: ab4bd, erik.badman, toralf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Mike Lothian 2018-05-03 11:32:38 UTC
Once a blocker for GCC 8.1 appears I'll add this to that

I'm not sure of Bellagio is still developed or not

/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3/src/base/omx_base_component.c: In function ‘omx_base_component_GetComponentVersion’:
/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3/src/base/omx_base_component.c:830:3: error: ‘memcpy’ forming offset [13, 36] is out of the bounds [0, 12] of object ‘uuid’ with type ‘OMX_U32[3]’ {aka ‘long unsigned int[3]’} [-Werror=array-bounds]
   memcpy(*pComponentUUID, uuid, 3*sizeof(uuid));
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3/src/base/omx_base_component.c:810:11: note: ‘uuid’ declared here
   OMX_U32 uuid[3];
           ^~~~
Comment 1 Mike Lothian 2018-05-03 11:33:55 UTC
Created attachment 529562 [details]
build.log
Comment 2 Greg Turner 2018-08-15 18:49:10 UTC
The solution others are adopting is to add the -Wno-error=array-bounds CFLAG, which makes it build on gcc82.  I have not investigated whether the warning represents a legitimate correctness problem in the code.  This project is apparently dead upstream.  So... caveat emptor.
Comment 3 Matt Turner gentoo-dev 2018-10-16 19:48:24 UTC
*** Bug 668252 has been marked as a duplicate of this bug. ***
Comment 4 Matt Turner gentoo-dev 2018-10-16 19:49:06 UTC
Masking this package for removal. WONTFIX.