Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445962 - media-video/dvdauthor: mpeg2desc contains writable and executable sections due to nested function usage
Summary: media-video/dvdauthor: mpeg2desc contains writable and executable sections du...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA with 1 vote (vote)
Assignee: media-video herd
Depends on:
Reported: 2012-12-04 18:49 UTC by Markus Rathgeb
Modified: 2017-03-01 21:32 UTC (History)
2 users (show)

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

remove nested function resulting in RWX section (dvdauthor_nested_function_removal.diff,2.71 KB, patch)
2017-02-25 10:04 UTC, Attila Tóth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rathgeb 2012-12-04 18:49:23 UTC
QA Notice: The following files contain writable and executable sections
 Files with such sections will not work properly (or at all!) on some
 architectures/operating systems.  A bug should be filed at to make sure the issue is fixed.
 For more information, see                                                                                                                                                                                                                                                          
 Please include the following list of files in your report:
 Note: Bugs should be filed for the respective maintainers
 of the package in question and not hardened@g.o.
RWX --- --- usr/bin/mpeg2desc

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2013-08-14 21:03:36 UTC
it's because of this fun guy:

                  /* GCC extension! nested routine */
                    void bufread(void *ptr, int len, bool required)
Comment 2 Attila Tóth 2015-07-08 16:48:14 UTC
Some more info on this:

This is the commit introducing the nested function:

Later on makefile changes were made to detect whether the compiler supports it:
Comment 3 Attila Tóth 2017-02-25 10:04:24 UTC
Created attachment 465098 [details, diff]
remove nested function resulting in RWX section

Use this patch to copy in /etc/portage/patches/media-video/dvdauthor-{version}/ directory to get rid of the RWX section.
Comment 4 SpanKY gentoo-dev 2017-03-01 21:32:23 UTC
(In reply to Attila Tóth from comment #3)

that's one way of doing it, but it means losing functionality