Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:cboltz
modlogan
fix-pie-percentage-overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-pie-percentage-overflow.patch of Package modlogan
fix buffer overflow if percent == 100 see https://bugzilla.novell.com/show_bug.cgi?id=517602 -cboltz diff -u -p -r -u modlogan-0.8.13_ORIG//src/output/modlogan/pic_pie.c modlogan-0.8.13/src/output/modlogan/pic_pie.c --- modlogan-0.8.13_ORIG//src/output/modlogan/pic_pie.c 2004-03-18 02:29:43.000000000 +0100 +++ modlogan-0.8.13/src/output/modlogan/pic_pie.c 2009-11-16 13:18:57.000000000 +0100 @@ -222,7 +222,7 @@ int mplugin_modlogan_create_pie(mconfig oldx2 = x2; oldy2 = y2; - sprintf(numstr, "%%2d%%%% %%.%ds", IM_TEXT_LEN-5); + sprintf(numstr, "%%2d%%%% %%.%ds", IM_TEXT_LEN-6); sprintf(str, numstr, (int)(percent * 100), graph->pairs[i]->name); gdImageString(im, gdFontSmall, x1_tb+1, y1_tb+1, str, col_border_sh);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor