commit | b077a53b2b8e4da725f1563e95b55650d61b47e7 | [log] [tgz] |
---|---|---|
author | Alan Modra <amodra@gmail.com> | Thu Aug 03 07:59:47 2023 +0930 |
committer | Alan Modra <amodra@gmail.com> | Thu Aug 03 21:19:54 2023 +0930 |
tree | 712e7513e05e136873090815e27e017d54c9782d | |
parent | 760fb390fd4ce506abd401e8a75fc0a510b82d48 [diff] |
cris: sprintf sanitizer null destination pointer Simplify the sprintf calls, and use sprintf return value. Older code in binutils avoided using the sprintf return count of chars printed, because with some older C libraries it wasn't reliable. Nowadays it should be OK to use (and we already use the return value elsewhere). sprintf can't return an error status of -1 here. * cris-dis.c (format_dec): Avoid sanitizer warning. Use sprintf return value rather than calling strlen.