THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

How to deactivate the warning "Trailing stray characters"?

  • retag add tags

The title says everything, how can i deactivate this warning?

Tagoria's avatar
1
Tagoria
asked 2020-03-24 09:53:55 +0000
edit flag offensive 0 remove flag close merge delete

Comments

Can you add some context to your question?

grahamb's avatar grahamb (2020-03-24 11:10:35 +0000) edit
add a comment see more comments

1 Answer

0
detect_trailing_stray_characters()

is checking for characters after a null ("\0") character which is the normal end of string.
Doesn't appear that it can be disabled:

/* "String Errors" isn't really a protocol, it's an error indication;
    disabling them makes no sense. */
 proto_set_cant_toggle(proto_string_errors);<br>
Chuckc's avatar
3k
Chuckc
answered 2020-03-24 14:30:59 +0000
edit flag offensive 0 remove flag delete link

Comments

Technically i totally agree that it makes no sense to disable it, but I'm using WireShark to protocol a development for our customer. There are a lot of reviewers that will go through the project documentation and they all see "yellow" marked parts with "Traling Stray Characters". I want to prevent that all these reviewer, an i guess they don't know what this messages mean, see that yellow marked packages. This wil automatically indicate something like "there is something not ok". From that point of view it makes sense :-) But as i understand, it is not possible.

Tagoria's avatar Tagoria (2020-03-24 14:54:15 +0000) edit

Have you looked at changing the Severity of the messages?
https://www.chappell-university.com/p...

Chuckc's avatar Chuckc (2020-03-24 15:04:30 +0000) edit

So does your protocol have counted strings, null-terminated strings, null-padded strings, or strings that are both counted and null-terminated?

Guy Harris's avatar Guy Harris (2020-03-24 18:27:48 +0000) edit

Why not sanitise your protocol, cleaning the string buffer tails before sending the packets, preventing leaking data? The warning is there for a (that) reason. If you can make the case that such side channel leaks are not a problem, explain that to the reviewers.

Jaap's avatar Jaap (2020-03-24 18:36:25 +0000) edit

@Guy Harris Yes, the customer protocol has null-terminated strings, counted and checksum after that.

@Jaap As i wrote, it is a customer protocol and it is not changeable at current project status.

Tagoria's avatar Tagoria (2020-07-08 08:51:05 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer