fixed the semantic issue, memory allocate size mismatch with received buffer pointer