log-server: allow maximum-length buffers to be printed

Previously, we would reject buffers that were the maximum allowed size.
This is reported in #141.

Allow these maximally-sized buffers to be printed, since they don't end
up causing a problem.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-04-23 12:45:27 +08:00
parent ac8decce88
commit 234c169809

View file

@ -322,10 +322,10 @@ fn handle_opcode(
} else {
"UNKNOWN"
};
if lr.file_length as usize >= lr.file.len() {
if lr.file_length as usize > lr.file.len() {
return;
}
if lr.args_length as usize >= lr.args.len() {
if lr.args_length as usize > lr.args.len() {
return;
}
if lr.module_length as usize > lr.module.len() {