Commit eece712
ovn-trace: Fix pop action in trace.
The pop action execution in trace may print garbage data due to
uninitialized buffer. For example, when it is supposed to print:
pop(reg2) <- 0x50;
it could print:
pop(reg2) <- 0xf8a720000000000060f9000000000000306d572fff7f000032fc466a30560000e06d572fff7f0000f831461c5d7f0000506d572fff7f0000fcf2476a305600001800000000000000f831461c5d7f0000906d572fff7f000079fa476a305600000000000000000000e06d572fff7f00001800000000000000f831461c00000050;
The actual value is the at the 0x50 at the tail but it prints the whole
128 byte buffer. This patch fixes it.
Fixes: 8ce8477 ("actions: Add stack push and pop actions.")
Signed-off-by: Han Zhou <hzhou@ovn.org>
Signed-off-by: Ales Musil <amusil@redhat.com>
(cherry picked from commit 543631a)1 parent 37f0b27 commit eece712
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1609 | 1609 | | |
1610 | 1610 | | |
1611 | 1611 | | |
1612 | | - | |
| 1612 | + | |
1613 | 1613 | | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | 1614 | | |
1619 | 1615 | | |
1620 | 1616 | | |
| |||
0 commit comments