Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1470500 Details for
Bug 1608301
msiextract broken with updated lbgcab1
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
fix
0001-gcab-Fix-regression-from-commit-a15d91073fd5d6be25.patch (text/plain), 1.78 KB, created by
Marc-Andre Lureau
on 2018-07-25 10:56:52 UTC
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Marc-Andre Lureau
Created:
2018-07-25 10:56:52 UTC
Size:
1.78 KB
patch
obsolete
>From 6555c82a9008da97908226b5ebaecede175e6bb2 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com> >Date: Wed, 25 Jul 2018 12:45:24 +0200 >Subject: [PATCH] gcab: Fix regression from commit a15d91073fd5d6be25 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Apparently, rewinding should reset the CDATA state. > >See also: >https://bugzilla.redhat.com/show_bug.cgi?id=1608301 > >Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> >--- > libgcab/gcab-folder.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/libgcab/gcab-folder.c b/libgcab/gcab-folder.c >index 1b09fa3..c0d6600 100644 >--- a/libgcab/gcab-folder.c >+++ b/libgcab/gcab-folder.c >@@ -423,6 +423,7 @@ gcab_folder_extract (GCabFolder *self, > g_autoptr(GSList) files = NULL; > g_autoptr(cdata_t) cdata = g_new0 (cdata_t, 1); > guint32 nubytes = 0; >+ guint8 *reserved; > > /* never loaded from a stream */ > g_assert (self->cfolder != NULL); >@@ -433,7 +434,7 @@ gcab_folder_extract (GCabFolder *self, > files = g_slist_sort (g_slist_copy (self->files), (GCompareFunc)sort_by_offset); > > /* this is allocated for every block, but currently unused */ >- cdata->reserved = g_malloc (res_data); >+ cdata->reserved = reserved = g_malloc (res_data); > > for (f = files; f != NULL; f = f->next) { > GCabFile *file = f->data; >@@ -454,6 +455,8 @@ gcab_folder_extract (GCabFolder *self, > if (!g_seekable_seek (G_SEEKABLE (data), self->cfolder->offsetdata, > G_SEEK_SET, cancellable, error)) > return FALSE; >+ bzero(cdata, sizeof(cdata_t)); >+ cdata->reserved = reserved; > nubytes = 0; > } > >-- >2.18.0.232.gb7bd9486b0 >
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 1608301
: 1470500