Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion humility-core/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,9 @@ impl GDBCore {
// We are done when we have our closing delimter followed by
// the two byte checksum.
//
if result.find(GDB_PACKET_END) == Some(result.len() - 3) {
if result.len() >= 3
&& result.find(GDB_PACKET_END) == Some(result.len() - 3)
{
break;
}
}
Expand Down