diff options
author | Ard Biesheuvel <[email protected]> | 2023-11-29 12:16:14 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2023-12-12 11:13:53 +0000 |
commit | 060260a6be47ae163b0c71a6d0902d065b68f3d2 (patch) | |
tree | b53bb13ea83613980569835171f537266d8e7e60 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | bcf1eed3f8a0b83824b41da82d226cf36320be76 (diff) |
arm64: idreg-override: Avoid sprintf() for simple string concatenation
Instead of using sprintf() with the "%s.%s=" format, where the first
string argument is always the same in the inner loop of match_options(),
use simple memcpy() for string concatenation, and move the first copy to
the outer loop. This removes the dependency on sprintf(), which will be
difficult to fulfil when we move this code into the early mini C
runtime.
Signed-off-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions