Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 162242 Details for
Bug 233929
games-simulation/openttd <0.6.3 TruncateString() Buffer Overflow (CVE-2008-{3547,3576,3577})
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
backported fix for 0.5.x
openttd-0.5.2-truncate-string.patch (text/plain), 611 bytes, created by
corec
on 2008-08-05 05:30:30 UTC
(
hide
)
Description:
backported fix for 0.5.x
Filename:
MIME Type:
Creator:
corec
Created:
2008-08-05 05:30:30 UTC
Size:
611 bytes
patch
obsolete
>--- openttd-0.5.2/gfx.c 2007-03-19 23:42:05.000000000 +0200 >+++ openttd-0.5.2-new/gfx.c 2008-08-05 07:50:18.000000000 +0300 >@@ -268,9 +268,11 @@ > w += GetCharacterWidth(size, c); > > if (w >= maxw) { >- // string got too big... insert dotdotdot >- ddd_pos[0] = ddd_pos[1] = ddd_pos[2] = '.'; >- ddd_pos[3] = '\0'; >+ /* string got too big... insert dotdotdot, but make sure we do not >+ * print anything beyond the string termination character. */ >+ int i; >+ for (i = 0; *ddd_pos != '\0' && i < 3; i++, ddd_pos++) *ddd_pos = '.'; >+ *ddd_pos = '\0'; > return ddd_w; > } > } else {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233929
:
162239
| 162242