Good Mornig, with the PIC32 Microchip microcontroller the compiler acept the original declaration of vector "uint8_t temp_buf[temp_len];"
this should work as long as you know that in your app you are not reading more than 142 bytes of data