Bug 1084648 - GCC 8: slang build fails
GCC 8: slang build fails
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Vladimir Nadvornik
E-mail List
Depends on:
Blocks: 1084649
  Show dependency treegraph
Reported: 2018-03-09 10:06 UTC by Martin Liška
Modified: 2018-04-10 13:32 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2018-03-09 10:06:30 UTC
Build the package with GCC 8, there's error:

[  230s] E: slang destbufferoverflow /home/abuild/rpmbuild/BUILD/slang-2.3.1a/src/slstring.c:389:11

Please build the project as follows to reproduce the issue:
osc build --alternative-project=openSUSE:Factory:Staging:Gcc7
Comment 1 Martin Liška 2018-04-06 13:13:33 UTC
Vlada any update about it?
Comment 2 Martin Liška 2018-04-10 13:32:06 UTC
It's invalid, was fixed in GCC trunk:

SVN revision: 259083
Author: matz
Fix -Wstringop-overflow regression

we shouldn't claim string overflows for character arrays at
end of structures; the code that tries to avoid these
accidentally passed the address of the accessed member to
array_at_struct_end_p(), but that one wants the component_ref
or array_ref itself.  Needs updating of one testcase that
incorrectly expected warning to occur in this situation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259083 138bc75d-0d04-0410-961f-82ee72b054a4