[Bug 558841] New: alpine: incorrect transformation patch included
http://bugzilla.novell.com/show_bug.cgi?id=558841 http://bugzilla.novell.com/show_bug.cgi?id=558841#c0 Summary: alpine: incorrect transformation patch included Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: All OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jengelh@medozas.de QAContact: qa@suse.de Found By: Beta-Customer Blocker: --- In alpine's operation-may-be-undefined-warning.diff, there is: - m = strtoul (++s,(char **) &s,10); - y = (*s == ':') ? strtoul (++s,(char **) &s,10) : 0; + s++; + m = strtoul (s,(char **) &s,10); + s++; + y = (*s == ':') ? strtoul (s,(char **) &s,10) : 0; But the last two + lines seem wrong. SUSE is incrementing s here before the test for ':', while the original patch only did it _after_. It should probably have been: s++; m = strtoul(s, (char **)&s, 10); if (*s == ':') { ++s; y = strtoul(s, (char **)&s, 10); } else { y = 0; } -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=558841
http://bugzilla.novell.com/show_bug.cgi?id=558841#c
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=558841
https://bugzilla.novell.com/show_bug.cgi?id=558841#c1
Reinhard Max
https://bugzilla.novell.com/show_bug.cgi?id=558841
https://bugzilla.novell.com/show_bug.cgi?id=558841#c2
Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=558841
https://bugzilla.novell.com/show_bug.cgi?id=558841#c3
--- Comment #3 from Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=558841
https://bugzilla.novell.com/show_bug.cgi?id=558841#c4
Reinhard Max
What was the gcc warning?
mail.c:2943: warning: operation on 's' may be undefined mail.c:2944: warning: operation on 's' may be undefined As this still happens on SLE11, I'll leave the patch in for now and fix it as you suggested above. BTW, current gcc versions (as of 11.4 and 12.1) show another warning of the same category: folder.c:6016:11: warning: operation on '*cmp' may be undefined The line reads: *cmp = ++(*cmp) % 3; I'll change that to *cmp = ((*cmp) + 1) % 3; and add it to the patch. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=558841
https://bugzilla.novell.com/show_bug.cgi?id=558841#c5
--- Comment #5 from Bernhard Wiedemann
http://bugzilla.novell.com/show_bug.cgi?id=558841
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=558841
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=558841
http://bugzilla.novell.com/show_bug.cgi?id=558841#c6
--- Comment #6 from Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=558841
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=558841
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com