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 944506 Details for
Bug 1150014
apply updates even when dbx isn't there yet
[?]
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]
[3/4] dump_dbx(): don't choke on (len == 0)
3-dump_dbx-don-t-choke-on-len-0-.patch (text/plain), 794 bytes, created by
Laszlo Ersek
on 2014-10-07 10:17:31 UTC
(
hide
)
Description:
[3/4] dump_dbx(): don't choke on (len == 0)
Filename:
MIME Type:
Creator:
Laszlo Ersek
Created:
2014-10-07 10:17:31 UTC
Size:
794 bytes
patch
obsolete
>From 0ce1b15ad8526ba0ca36116662dc9163ec043b6d Mon Sep 17 00:00:00 2001 >From: Laszlo Ersek <lersek@redhat.com> >Date: Tue, 7 Oct 2014 10:03:40 +0200 >Subject: [PATCH] dump_dbx(): don't choke on (len == 0) > >In the next patch, a call to dump_dbx() with (len == 0) will become >possible. Treat this condition as > > dbx entirely absent > >and just return early, with success. > >Signed-off-by: Laszlo Ersek <lersek@redhat.com> >--- > src/dbxtool.c | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/src/dbxtool.c b/src/dbxtool.c >index d2a2b12..467302f 100644 >--- a/src/dbxtool.c >+++ b/src/dbxtool.c >@@ -103,6 +103,9 @@ dump_dbx(uint8_t *buf, size_t len) > int rc; > esd_iter *iter = NULL; > >+ if (len == 0) >+ return 0; >+ > rc = esd_iter_new(&iter, buf, len); > if (rc < 0) > err(1, NULL); >-- >1.8.3.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 1150014
:
944504
|
944505
| 944506 |
944507