Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654720 - 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]
Summary: media-libs/libomxil-bellagio-0.9.3 with GCC 8.1 - .../work/libomxil-bellagio-...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 668252 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-05-03 11:32 UTC by Mike Lothian
Modified: 2018-10-16 19:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,36.03 KB, text/plain)
2018-05-03 11:33 UTC, Mike Lothian
Details

Note You need to log in before you can comment on or make changes to this bug.
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.