Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 247093 Details for
Bug 337020
x11-base/xorg-server-1.9.0 build fails "/usr/include/bits/string3.h:52:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer" when built with GCC 4.5
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
xorg-server-1.9-fix-VbeModeInfoBlock-memcpy.patch
xorg-server-1.9-fix-VbeModeInfoBlock-memcpy.patch (text/plain), 1.32 KB, created by
Alexandre Rostovtsev (RETIRED)
on 2010-09-13 04:20:43 UTC
(
hide
)
Description:
xorg-server-1.9-fix-VbeModeInfoBlock-memcpy.patch
Filename:
MIME Type:
Creator:
Alexandre Rostovtsev (RETIRED)
Created:
2010-09-13 04:20:43 UTC
Size:
1.32 KB
patch
obsolete
>From ef6c9d2af50ac03b28ad92ea90105047d8bc9948 Mon Sep 17 00:00:00 2001 >From: Alexandre Rostovtsev <tetromino@gmail.com> >Date: Sun, 12 Sep 2010 23:53:26 -0400 >Subject: [PATCH] Fix VbeModeInfoBlock memcpy. > >Reserved2 is 189 bytes (not 188). From LinBytesPerScanLine to end of >Reserved2 we have 189 + 16 = 205 bytes (not 206). From PhysBasePtr to end >of Reserved2 we have 189 + 26 = 215 bytes (not 216). >--- > hw/xfree86/vbe/vbe.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/hw/xfree86/vbe/vbe.c b/hw/xfree86/vbe/vbe.c >index 0b34648..2051577 100644 >--- a/hw/xfree86/vbe/vbe.c >+++ b/hw/xfree86/vbe/vbe.c >@@ -583,13 +583,13 @@ VBEGetModeInfo(vbeInfoPtr pVbe, int mode) > block->LinRsvdMaskSize = ((char*)pVbe->memory)[60]; > block->LinRsvdFieldPosition = ((char*)pVbe->memory)[61]; > block->MaxPixelClock = *(CARD32*)(((char*)pVbe->memory) + 62); >- memcpy(&block->Reserved2, ((char*)pVbe->memory) + 66, 188); >+ memcpy(&block->Reserved2, ((char*)pVbe->memory) + 66, 189); > } > else >- memcpy(&block->LinBytesPerScanLine, ((char*)pVbe->memory) + 50, 206); >+ memcpy(&block->LinBytesPerScanLine, ((char*)pVbe->memory) + 50, 205); > } > else >- memcpy(&block->PhysBasePtr, ((char*)pVbe->memory) + 40, 216); >+ memcpy(&block->PhysBasePtr, ((char*)pVbe->memory) + 40, 215); > > return block; > } >-- >1.7.2.2 >
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 337020
:
247071
|
247079
| 247093