[Bug 44160] New: Possible access to unintended field in "tools/winegcc/ winegcc.c" line 1633
https://bugs.winehq.org/show_bug.cgi?id=44160 Bug ID: 44160 Summary: Possible access to unintended field in "tools/winegcc/winegcc.c" line 1633 Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: wine-bugs(a)winehq.org Reporter: petrum(a)gmail.com Distribution: --- While experimenting with a CodeSonar plugin we develop, we noticed a potential bug in file "tools/winegcc/winegcc.c" line 1633, function main else if (!strncmp("--lib-suffix", argv[i], 12) && opts.wine_objdir) //HERE { if (argv[i][12] == '=') opts.lib_suffix = argv[i] + 13; else opts.lib_suffix = argv[++i]; raw_compiler_arg = raw_linker_arg = 0; } Wasn't the intention to access lib_suffix (instead of wine_objdir)? Regards, Petru Florin Mihancea -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44160 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Alexandre Julliard <julliard(a)winehq.org> --- No, wine_objdir is correct, lib_suffix isn't set yet at this point. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44160 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Closing -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org