[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61643] grops: core dump when running and compiled with -Wsanitize=
From: |
G. Branden Robinson |
Subject: |
[bug #61643] grops: core dump when running and compiled with -Wsanitize=undefined |
Date: |
Fri, 16 Sep 2022 21:20:21 -0400 (EDT) |
Update of bug #61643 (project groff):
Status: In Progress => Invalid
Open/Closed: Open => Closed
Planned Release: 1.23.0 => None
_______________________________________________________
Follow-up Comment #5:
I think this is a bug in ASAN, but I did change these static structs to
include the "const" modifier. Maybe that will clue ASAN in and maybe it
won't.
commit 1b676f414a33964a7e3708a692a70a13d70f9a91
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Tue Sep 13 04:34:52 2022 -0500
[grops]: Fix code style nit.
* src/devices/grops/ps.cpp (ps_printer::special)
(resource_manager::process_file): Fix code style nit. Mark static
structs initialized within functions and never modified thereafter as
`const`. This attempts to work around an apparent false positive from
AddressSanitizer. If it doesn't pacify ASAN, please explain to me how
constant structure members initialized to string literals and function
pointers within the translation unit can ever be null. If that is
infeasible, please report a bug to your compiler vendor.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61643>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/