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
Please register or sign in to comment