PREV INDEX NEXT

Author: Unknown
Subject: Staff Solution Invalid Pointer Error
Date: Monday, 06 Apr 2020, 20:50:45

While testing for edge cases I noticed that the staff solution for Qsort returns an error when given -POS,[LEN] with no file as follows: 
munmap_chunk(): invalid pointer
Aborted (core dumped)

When provided with just -POS and no file, it returns:
free(): invalid pointer
Aborted (core dumped)

On the other hand, it appears that Qsort.V0 does not return errors and simply exits when provided no file as instructed in the spec. Should our program follow Qsort or Qsort.V0 in this case? Thanks.
PREV INDEX NEXT