Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 49363 Details for
Bug 78230
media-video/vdr CAN-2005-0071: overwrites arbitrary files (Vendor-Sec)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
vdr-1.2.6_CAN-2005-0071.patch
vdr-1.2.6_CAN-2005-0071.patch (text/plain), 893 bytes, created by
Thierry Carrez (RETIRED)
on 2005-01-24 05:38:22 UTC
(
hide
)
Description:
vdr-1.2.6_CAN-2005-0071.patch
Filename:
MIME Type:
Creator:
Thierry Carrez (RETIRED)
Created:
2005-01-24 05:38:22 UTC
Size:
893 bytes
patch
obsolete
>--- vdr-1.2.6/dvbdevice.c.orig 2005-01-24 14:33:57.478927267 +0100 >+++ vdr-1.2.6/dvbdevice.c 2005-01-24 14:37:04.732811047 +0100 >@@ -505,8 +505,10 @@ > Quality = 255; //XXX is this 'best'??? > > isyslog("grabbing to %s (%s %d %d %d)", FileName, Jpeg ? "JPEG" : "PNM", Quality, vm.width, vm.height); >- FILE *f = fopen(FileName, "wb"); >- if (f) { >+ int fd = open(FileName, O_CREAT | O_EXCL | O_TRUNC | O_RDWR, 0600); >+ if (fd > -1) { >+ FILE *f = fdopen(fd, "wb"); >+ if (f) { > if (Jpeg) { > // write JPEG file: > struct jpeg_compress_struct cinfo; >@@ -540,7 +542,8 @@ > } > } > fclose(f); >- } >+ } >+ } > else { > LOG_ERROR_STR(FileName); > result |= 1;
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 78230
:
48663
| 49363