Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 435654 Details for
Bug 578968
app-arch/unzip-6.0_p20: fails to compile with -Werror=format-security
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
unzip-6.0-format-security.patch
unzip-6.0-format-security.patch (text/plain), 3.79 KB, created by
René Rhéaume
on 2016-05-28 17:43:44 UTC
(
hide
)
Description:
unzip-6.0-format-security.patch
Filename:
MIME Type:
Creator:
René Rhéaume
Created:
2016-05-28 17:43:44 UTC
Size:
3.79 KB
patch
obsolete
>--- unzip60/extract.c >+++ unzip60-format-security/extract.c >@@ -474,7 +474,7 @@ int extract_or_test_files(__G) /* ret > */ > Info(slide, 0x401, ((char *)slide, > LoadFarString(CentSigMsg), j + blknum*DIR_BLKSIZ + 1)); >- Info(slide, 0x401, ((char *)slide, >+ Info(slide, 0x401, ((char *)slide, "%s", > LoadFarString(ReportMsg))); > error_in_archive = PK_BADERR; > } >@@ -754,8 +754,8 @@ int extract_or_test_files(__G) /* ret > > #ifndef SFX > if (no_endsig_found) { /* just to make sure */ >- Info(slide, 0x401, ((char *)slide, LoadFarString(EndSigMsg))); >- Info(slide, 0x401, ((char *)slide, LoadFarString(ReportMsg))); >+ Info(slide, 0x401, ((char *)slide, "%s", LoadFarString(EndSigMsg))); >+ Info(slide, 0x401, ((char *)slide, "%s", LoadFarString(ReportMsg))); > if (!error_in_archive) /* don't overwrite stronger error */ > error_in_archive = PK_WARN; > } >--- unzip60/list.c >+++ unzip60-format-security/list.c >@@ -181,7 +181,7 @@ int list_files(__G) /* return PK-type > Info(slide, 0x401, > ((char *)slide, LoadFarString(CentSigMsg), j)); > Info(slide, 0x401, >- ((char *)slide, LoadFarString(ReportMsg))); >+ ((char *)slide, "%s", LoadFarString(ReportMsg))); > return PK_BADERR; /* sig not found */ > } > } >@@ -507,7 +507,7 @@ int list_files(__G) /* return PK-type > && (!G.ecrec.is_zip64_archive) > && (memcmp(G.sig, end_central_sig, 4) != 0) > ) { /* just to make sure again */ >- Info(slide, 0x401, ((char *)slide, LoadFarString(EndSigMsg))); >+ Info(slide, 0x401, ((char *)slide, "%s", LoadFarString(EndSigMsg))); > error_in_archive = PK_WARN; /* didn't find sig */ > } > >@@ -591,7 +591,7 @@ int get_time_stamp(__G__ last_modtime, n > Info(slide, 0x401, > ((char *)slide, LoadFarString(CentSigMsg), j)); > Info(slide, 0x401, >- ((char *)slide, LoadFarString(ReportMsg))); >+ ((char *)slide, "%s", LoadFarString(ReportMsg))); > return PK_BADERR; /* sig not found */ > } > } >@@ -674,7 +674,7 @@ int get_time_stamp(__G__ last_modtime, n > ---------------------------------------------------------------------------*/ > > if (memcmp(G.sig, end_central_sig, 4)) { /* just to make sure again */ >- Info(slide, 0x401, ((char *)slide, LoadFarString(EndSigMsg))); >+ Info(slide, 0x401, ((char *)slide, "%s", LoadFarString(EndSigMsg))); > error_in_archive = PK_WARN; > } > if (*nmember == 0L && error_in_archive <= PK_WARN) >--- unzip60/zipinfo.c >+++ unzip60-format-security/zipinfo.c >@@ -771,7 +771,7 @@ int zipinfo(__G) /* return PK-type err > Info(slide, 0x401, > ((char *)slide, LoadFarString(CentSigMsg), j)); > Info(slide, 0x401, >- ((char *)slide, LoadFarString(ReportMsg))); >+ ((char *)slide, "%s", LoadFarString(ReportMsg))); > error_in_archive = PK_BADERR; /* sig not found */ > break; > } >@@ -960,7 +960,7 @@ int zipinfo(__G) /* return PK-type err > && (!G.ecrec.is_zip64_archive) > && (memcmp(G.sig, end_central_sig, 4) != 0) > ) { /* just to make sure again */ >- Info(slide, 0x401, ((char *)slide, LoadFarString(EndSigMsg))); >+ Info(slide, 0x401, ((char *)slide, "%s", LoadFarString(EndSigMsg))); > error_in_archive = PK_WARN; /* didn't find sig */ > } >
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 578968
:
429594
|
429596
| 435654 |
435656