mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
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:
parent
ac8decce88
commit
234c169809
1 changed files with 2 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue