We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c2b83 commit ed12148Copy full SHA for ed12148
humility-core/src/core.rs
@@ -593,7 +593,9 @@ impl GDBCore {
593
// We are done when we have our closing delimter followed by
594
// the two byte checksum.
595
//
596
- if result.find(GDB_PACKET_END) == Some(result.len() - 3) {
+ if result.len() >= 3
597
+ && result.find(GDB_PACKET_END) == Some(result.len() - 3)
598
+ {
599
break;
600
}
601
0 commit comments