Commit fff2b06
committed
[lldb] Fix slide calculation in LLDBMemoryReader
The slide calculation was incorrectly negating an unsigned integer and
passing it to a call to SaturatingAdd. The section load address should
always be larger than the section file address, so change the underflow
check to a comparison instead.
(cherry picked from commit 61f28df)1 parent 0ffc76a commit fff2b06
File tree
1 file changed
+6
-6
lines changed- lldb/source/Plugins/LanguageRuntime/Swift
1 file changed
+6
-6
lines changedLines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
| 646 | + | |
650 | 647 | | |
651 | | - | |
652 | | - | |
| 648 | + | |
| 649 | + | |
653 | 650 | | |
654 | 651 | | |
655 | 652 | | |
656 | 653 | | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| |||
0 commit comments