lseek was triggering a number overflow by converting long to integer on its return value Added specific lseek test