-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update section.go #3
base: main
Are you sure you want to change the base?
Conversation
Add a check for false on private indicator: private_indicator – This is a 1-bit flag that shall be set to 0.
added a check on protocol version protocol_version: @ present, this attribute shall be set to 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
futzu/threefive#88 is an example of what I'm talking about with people using custom identifiers.
@@ -27,6 +27,9 @@ func (infosec *InfoSection) Decode(bd *bitDecoder) bool { | |||
} | |||
infosec.SectionSyntaxIndicator = bd.asFlag() | |||
infosec.Private = bd.asFlag() | |||
if infosec.Private { | |||
return false | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct, as far as the specification goes, but this gets us nothing, I've never seen this value used, and that's why Intentionally don't check it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about instead of returning false, print a warning message to stderr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about instead of returning false, print a warning message to stderr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool
helloooooo |
Agree let's do it as warning |
Are you going to give me an update with the warnings? |
Add a check for false on private indicator:
private_indicator – This is a 1-bit flag that shall be set to 0.