# HG changeset patch # User mroi # Date 1049021834 0 # Node ID 33d6bb570dcbb71174e1bd8f06de0b42b857adfd # Parent f7a26cd00c937e31e2f1eb9161fbea344d49575a one additional sanity check on the part number diff -r f7a26cd00c93 -r 33d6bb570dcb navigation.c --- a/navigation.c Sat Mar 29 14:16:28 2003 +0000 +++ b/navigation.c Sun Mar 30 10:57:14 2003 +0000 @@ -153,6 +153,12 @@ pthread_mutex_unlock(&this->vm_lock); return S_ERR; } + if((part < 1) || (part > this->vm->vmgi->tt_srpt->title[title-1].nr_of_ptts)) { + printerr("Part out of range."); + pthread_mutex_unlock(&this->vm_lock); + return S_ERR; + } + retval = vm_jump_title_part(this->vm, title, part); if (retval) this->vm->hop_channel++;