FS#75031 - [zsnes] buffer overflow when starting zsnes
Attached to Project:
Community Packages
Opened by Alexander F. Rødseth (xyproto) - Saturday, 11 June 2022, 08:09 GMT
Last edited by Antonio Rojas (arojas) - Monday, 04 July 2022, 16:33 GMT
Opened by Alexander F. Rødseth (xyproto) - Saturday, 11 June 2022, 08:09 GMT
Last edited by Antonio Rojas (arojas) - Monday, 04 July 2022, 16:33 GMT
|
Details
Description:
@Proscritt09 on GitHub created an issue reporting that after the zsnes package changed from pkgrel=1 to pkgrel=2, an issue appeared, when running the ActRaiser game: *** buffer overflow detected ***: terminated Aborted (core dumped) The only changes from pkgrel=1 to pkgrel=2 in the PKGBUILD are: export CFLAGS=${CFLAGS/-fcf-protection/} export CXXFLAGS=${CXXFLAGS/-fcf-protection/} zsnes 2.0.9-2 @Proscritt09 is using the 5.18.3-arch1-1 kernel (on EndeavourOS, but I think the issue might be related to the new CFLAGS/CXXFLAGS). |
This task depends upon
Closed by Antonio Rojas (arojas)
Monday, 04 July 2022, 16:33 GMT
Reason for closing: Fixed
Additional comments about closing: zsnes 2.0.10-1
Monday, 04 July 2022, 16:33 GMT
Reason for closing: Fixed
Additional comments about closing: zsnes 2.0.10-1
With the `zsnes` package, just starting `zsnes` immediately gives:
*** buffer overflow detected ***: terminated
zsh: IOT instruction (core dumped) zsnes
export CFLAGS=${CFLAGS/-Wp,-D_FORTIFY_SOURCE=2/}
export CXXFLAGS=${CXXFLAGS/-Wp,-D_FORTIFY_SOURCE=2/}
https://github.com/rpmfusion/zsnes
can you test them?
The `zsnes` repository now has a `2.0.10` tag with the patches applied, that works with D_FORTIFY_SOURCE=2 when testing locally here.
Could you please package and push zsnes with these flags, just so that the package stops being broken?
export CFLAGS=${CFLAGS/-Wp,-D_FORTIFY_SOURCE=2/}
export CXXFLAGS=${CXXFLAGS/-Wp,-D_FORTIFY_SOURCE=2/}