[UDFS] Fix an integer overflow leading to a buffer overrun