+-- On Mon, 18 Jan 2016, Jason Wang wrote --+ | > + if (size > sizeof(rxbuf) - sizeof(crc_val)) { | > + size = sizeof(rxbuf) - sizeof(crc_val); | > + } | > + bytes_to_copy = size; | > + | | We probably need more check, is there any guarantee that size <= 2048? | If not, need fix.
Sorry? The above check would fix that, no? -- - P J P 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F