Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

enricovittorini
Copy link

Add a check for false on private indicator:
private_indicator – This is a 1-bit flag that shall be set to 0.

enricovittorini and others added 7 commits August 14, 2023 12:16
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.
descriptors.go Show resolved Hide resolved
Copy link
Owner

@futzu futzu left a 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
}
Copy link
Owner

@futzu futzu Aug 15, 2023

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.

Copy link
Owner

@futzu futzu left a 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.

Copy link
Owner

@futzu futzu left a 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.

Copy link
Owner

@futzu futzu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

@futzu
Copy link
Owner

futzu commented Aug 26, 2023

helloooooo

@enricovittorini
Copy link
Author

Agree let's do it as warning

@futzu
Copy link
Owner

futzu commented Sep 11, 2023

Are you going to give me an update with the warnings?
You already did all the work, update it and I'll merge it.
Jjust change log.Fatal to something like log.Print...... they need a log.Warn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants