Displaying 6 results from an estimated 6 matches for "le32to".
Did you mean:
le32toh
2017 Feb 15
2
Re: [PATCH v2 1/2] lib: change how hbin sections are read.
...'s why I put "hbin" offset validation
> check couple of lines below to make sure that the "hbin" we found by
> searching is a proper one. The offset check I'm referring to is:
>
> /* get "stated" hbin offset from header */
> size_t page_offset = le32to(page->offset_first) + 0x1000;
>
> /* if that does not match our current file offset,
> then exit with error */
> if (page_offset != off) {
> SET_ERRNO...
> }
Still, what kind of corruption would move a genuine hbin to a
non-page-sized offset in the file? It seems unlik...
2017 Feb 15
2
Re: [PATCH v2 1/2] lib: change how hbin sections are read.
...; check couple of lines below to make sure that the "hbin" we found
> > > by
> > > searching is a proper one. The offset check I'm referring to is:
> > >
> > > /* get "stated" hbin offset from header */
> > > size_t page_offset = le32to(page->offset_first) + 0x1000;
> > >
> > > /* if that does not match our current file offset,
> > > then exit with error */
> > > if (page_offset != off) {
> > > SET_ERRNO...
> > > }
> >
> > Still, what kind of corruption w...
2017 Feb 15
2
Re: [PATCH v2 1/2] lib: change how hbin sections are read.
On Wed, Feb 15, 2017 at 01:48:29PM -0500, Dawid Zamirski wrote:
> On Wed, 2017-02-15 at 16:54 +0000, Richard W.M. Jones wrote:
> > On Tue, Feb 14, 2017 at 12:05:20PM -0500, Dawid Zamirski wrote:
> > > * hivex_open: when looping over hbin sections (aka pages), handle a
> > > case where following hbin section may not begin at exactly at the
> > > end
> >
2017 Feb 15
0
Re: [PATCH v2 1/2] lib: change how hbin sections are read.
...> validation
> > check couple of lines below to make sure that the "hbin" we found
> > by
> > searching is a proper one. The offset check I'm referring to is:
> >
> > /* get "stated" hbin offset from header */
> > size_t page_offset = le32to(page->offset_first) + 0x1000;
> >
> > /* if that does not match our current file offset,
> > then exit with error */
> > if (page_offset != off) {
> > SET_ERRNO...
> > }
>
> Still, what kind of corruption would move a genuine hbin to a
> non-p...
2017 Feb 15
0
Re: [PATCH v2 1/2] lib: change how hbin sections are read.
...elow to make sure that the "hbin" we found
> > > > by
> > > > searching is a proper one. The offset check I'm referring to is:
> > > >
> > > > /* get "stated" hbin offset from header */
> > > > size_t page_offset = le32to(page->offset_first) + 0x1000;
> > > >
> > > > /* if that does not match our current file offset,
> > > > then exit with error */
> > > > if (page_offset != off) {
> > > > SET_ERRNO...
> > > > }
> > >
> &g...
2017 Feb 15
0
Re: [PATCH v2 1/2] lib: change how hbin sections are read.
...;hbin" as well. That's why I put "hbin" offset validation
check couple of lines below to make sure that the "hbin" we found by
searching is a proper one. The offset check I'm referring to is:
/* get "stated" hbin offset from header */
size_t page_offset = le32to(page->offset_first) + 0x1000;
/* if that does not match our current file offset,
then exit with error */
if (page_offset != off) {
SET_ERRNO...
}