git.samba.org
/
metze
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d94fce
)
BLF: CAN_MESSAGE: Remove payload length check since the size is fixed
author
Giovanni Musto
<giovanni.musto@partner.italdesign.it>
Wed, 18 Oct 2023 06:07:54 +0000
(08:07 +0200)
committer
AndersBroman
<a.broman58@gmail.com>
Tue, 24 Oct 2023 18:02:51 +0000
(18:02 +0000)
wiretap/blf.c
patch
|
blob
|
history
diff --git
a/wiretap/blf.c
b/wiretap/blf.c
index f4973c807e93ade921aa0ad6cbd1d640748e3225..0fe1e6e7dea696ee25c723d1dc5c71e874a18a1f 100644
(file)
--- a/
wiretap/blf.c
+++ b/
wiretap/blf.c
@@
-1310,11
+1310,6
@@
blf_read_canmessage(blf_params_t *params, int *err, gchar **err_info, gint64 blo
payload_length_valid = payload_length;
- if (payload_length_valid > object_length - (data_start - block_start)) {
- ws_debug("shortening CAN payload because buffer is too short!");
- payload_length_valid = (guint8)(object_length - (data_start - block_start));
- }
-
canid = canheader.id;
if ((canheader.flags & BLF_CANMESSAGE_FLAG_RTR) == BLF_CANMESSAGE_FLAG_RTR) {