[DVDnav-discuss] [PATCH] Sanitize PTT start offsets

Erik Hovland erik at hovland.org
Sat Nov 12 02:45:51 CET 2011


> > Is there a way to do the patch so it is just the conditional and
> > doesn't have the start declaration and assignment?
> > 
> > E
> > 
> 
> The reason I did this is, in theory, the start offset that is out of
> range could be the beginning of a title PTT that one of the other
> offsets points to.   We need to avoid modifying it with B2N_32. So I
> convert the offset, test it, then modify it if the offset is good.   I
> didn't see a better way of doing this.   Although one option would be to
> revert it with another B2N_32 inside the conditional.

Yeah, I see your point. As long as no one else complains, I will put this patch in my tree.

Thanks

E

-- 
Erik Hovland
http://hovland.org
GPG key available by request


More information about the DVDnav-discuss mailing list