Re: [PATCH] Prevent jumping beyond file end in the viewer

2006-12-30 Thread Pavel Tsekov
Hello Andrzej, On Wed, 2006-12-20 at 13:50, Pavel Tsekov wrote: > On Wed, 20 Dec 2006, andrzej zaborowski wrote: > > > in the hex viewer the GoTo (F5) command allows you to jump beyond > > end of file and even to view or edit data there. This is because the > > address given by user is not check

Re: [PATCH] Prevent jumping beyond file end in the viewer

2006-12-20 Thread Pavel Tsekov
Hello Andrzej, On Wed, 20 Dec 2006, andrzej zaborowski wrote: > in the hex viewer the GoTo (F5) command allows you to jump beyond > end of file and even to view or edit data there. This is because the > address given by user is not checked for correctness anywhere. > Eventually, in src/view.c:vie

[PATCH] Prevent jumping beyond file end in the viewer

2006-12-19 Thread andrzej zaborowski
Hi, in the hex viewer the GoTo (F5) command allows you to jump beyond end of file and even to view or edit data there. This is because the address given by user is not checked for correctness anywhere. Eventually, in src/view.c:view_file_load_data, the address is passed to lseek() whose return va