Bugzilla – Attachment 24728 Details for
Bug 61221
VUL-0: CVE-2004-0964:: zinf buffer overflow
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
playlist.diff
playlist.diff (text/x-diff), 1.03 KB, created by
Ludwig Nussel
on 2004-10-07 20:00:01 UTC
(
hide
)
Description:
playlist.diff
Filename:
MIME Type:
Creator:
Ludwig Nussel
Created:
2004-10-07 20:00:01 UTC
Size:
1.03 KB
patch
obsolete
>Index: freeamp/plm/playlist/pls/pls.cpp >=================================================================== >--- freeamp.orig/plm/playlist/pls/pls.cpp >+++ freeamp/plm/playlist/pls/pls.cpp >@@ -102,6 +102,7 @@ Error PLS::ReadPlaylist(const char* url, > char key[_MAX_PATH]; > char value[_MAX_PATH]; > char root[_MAX_PATH]; >+ char format[32]; > char *cp = NULL; > uint32 length = sizeof(path); > int32 len; >@@ -122,16 +123,18 @@ Error PLS::ReadPlaylist(const char* url, > fp = fopen(path, "rb"); > if (!fp) > return kError_FileNotFound; >+ >+ snprintf(format, sizeof(format), "%%%d[^=]=%%%d[^\n\r] ", sizeof(key)-1, sizeof(value)-1); > > title[0] = 0; > file[0] = 0; > len = -1; > while(!feof(fp)) > { >- if (fscanf(fp, " [%[^]]] ", key)) >+ if (fscanf(fp, " [%*[^]]] ")) > continue; > >- if (fscanf(fp, "%[^=]=%[^\n\r] ", key, value)) >+ if (fscanf(fp, format, key, value)) > { > if (strncmp(key, "File", 4) == 0) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 61221
: 24728 |
24733
|
24734
|
24735