Skip to content

Commit

Permalink
bhyve: Escape bytes returned by capability read responses
Browse files Browse the repository at this point in the history
  • Loading branch information
markjdb committed Jul 31, 2024
1 parent cf5fe87 commit 7320a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr.sbin/bhyve/gdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1976,11 +1976,11 @@ gdb_query(const uint8_t *data, size_t len)
append_char('l');
} else if (doff + dlen >= sizeof(capbuf)) {
append_char('l');
append_packet_data(capbuf + doff,
append_binary_data(capbuf + doff,
sizeof(capbuf) - doff);
} else {
append_char('m');
append_packet_data(capbuf + doff, dlen);
append_binary_data(capbuf + doff, dlen);
}
finish_packet();
#else
Expand Down

0 comments on commit 7320a86

Please sign in to comment.