Commit 10180af
lib: cbprintf: avoid referencing distinct union fields in a statement
An assignment from one multi-word union field to another was not safe
from corruption. Copy the value out to a local value before storing it
to the preferred union field.
Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>1 parent 0129dd6 commit 10180af
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1323 | 1323 | | |
1324 | 1324 | | |
1325 | 1325 | | |
| 1326 | + | |
1326 | 1327 | | |
1327 | 1328 | | |
1328 | 1329 | | |
| |||
1579 | 1580 | | |
1580 | 1581 | | |
1581 | 1582 | | |
1582 | | - | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1583 | 1589 | | |
1584 | | - | |
| 1590 | + | |
1585 | 1591 | | |
1586 | | - | |
| 1592 | + | |
1587 | 1593 | | |
1588 | 1594 | | |
1589 | 1595 | | |
| |||
0 commit comments