Skip to content
Commit 7f2f0ccb authored by Hafiz Abid Qadeer's avatar Hafiz Abid Qadeer
Browse files

Replace sprintf with snprintf to avoid a crash.

During testing -data-list-register-values, I saw a crash here due to buffer overflow.
This commit should fix the crash. There is still problem with printing 1-byte register
in some cases that I will fix separately.

No regression on MI test cases.

llvm-svn: 235991
parent 7dea2e39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment