-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix: long version of go dependency unable to inserted into software table (CVE-2020-36569) #5221
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,6 @@ | ||||||||||||||||||
ALTER TABLE software ALTER COLUMN versionEndExcluding SET DATA TYPE VARCHAR(75); | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as @Keymaster65 already suggested, i would also prefer to take the column length of 255 chars:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should not this file be named |
||||||||||||||||||
ALTER TABLE software ALTER COLUMN versionEndIncluding SET DATA TYPE VARCHAR(75); | ||||||||||||||||||
ALTER TABLE software ALTER COLUMN versionStartExcluding SET DATA TYPE VARCHAR(75); | ||||||||||||||||||
ALTER TABLE software ALTER COLUMN versionStartIncluding SET DATA TYPE VARCHAR(75); | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
jeremylong marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||
|
||||||||||||||||||
UPDATE Properties SET `value`='5.3' WHERE ID='version'; |
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.
I'd suggest a higher number than 75, because it is the exact the size for this specific entry.
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 255 like other COLUMNs or even more. Is their a concret reason for 75 except that the current CVE needs 75?
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.
I am all for
255
, at least I don't see a reason to not make it reasonably bigger, otherwise75
is just us waiting for the next one to happen.