Commit b54a9af
committed
[C++] Check the length passed to put method for var length strings.
Passing nullptr as src to std::memcpy is undefined behavior even if the
length is zero is undefined behavior.1 parent 2f698d2 commit b54a9af
File tree
1 file changed
+6
-3
lines changed- sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
535 | | - | |
536 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
537 | 540 | | |
538 | 541 | | |
539 | 542 | | |
| |||
0 commit comments