Commit adea850
rv_strcpy: move checking the 4th byte in case of 32-bit to 64-bit
This check is not needed in case of `_riscv_xlen=32` at all as it's checking the last byte which is supposed to be `NULL` (by standard `strcpy` input is null terminated string)
Also it causes function to set 0 to out of boundary address in case of `_riscv_xlen=32`
Reducing assembly instructions of `strcpy` in case of `_riscv_xlen=32`
Signed-off-by: Abdallah Abdelhafeez <[email protected]>1 parent 4d35a31 commit adea850
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | 100 | | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | 112 | | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments