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 d336c21 commit ff53a75Copy full SHA for ff53a75
humility-core/src/core.rs
@@ -851,7 +851,9 @@ impl GDBCore {
851
// We are done when we have our closing delimter followed by
852
// the two byte checksum.
853
//
854
- if result.find(GDB_PACKET_END) == Some(result.len() - 3) {
+ if result.len() >= 3
855
+ && result.find(GDB_PACKET_END) == Some(result.len() - 3)
856
+ {
857
break;
858
}
859
0 commit comments