
<     jzero_far((void *) output_buf[row], (size_t) (width * sizeof(JSAMPLE)));
---
>     if (row < num_rows && width > 0) {
>         jzero_far((void *) output_buf[row], (size_t) (width * sizeof(JSAMPLE)));
>     } else {
>         /* Handle out-of-bounds error */
>     }
