Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
hivex.21040
0001-handle-Check-that-pages-do-not-extend-beyo...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-handle-Check-that-pages-do-not-extend-beyond-the-end.patch of Package hivex.21040
From 4bbdf555f88baeae0fa804a369a81a83908bd705 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" <rjones@redhat.com> Date: Thu, 30 Oct 2014 14:02:25 +0000 Subject: handle: Check that pages do not extend beyond the end of the file. Thanks: Mahmoud Al-Qudsi --- lib/handle.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/handle.c b/lib/handle.c index a3cbcf7..3a8f09b 100644 --- a/lib/handle.c +++ b/lib/handle.c @@ -247,6 +247,13 @@ hivex_open (const char *filename, int flags) goto error; } + if (off + page_size > h->size) { + SET_ERRNO (ENOTSUP, + "%s: page size %zu at 0x%zx extends beyond end of file, bad registry", + filename, page_size, off); + goto error; + } + /* Read the blocks in this page. */ size_t blkoff; struct ntreg_hbin_block *block;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor