[Acc] [PATCH] uadk: fix buffer overflow and out-of-bounds access