-
-
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 2 commits
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.2.2' WHERE ID='version'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ data.file_name=odc.mv.db | |
### if you increment the DB version then you must increment the database file path | ||
### in the mojo.properties, task.properties (maven and ant respectively), and | ||
### the gradle PurgeDataExtension. | ||
data.version=5.2.1 | ||
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. This property is used to choose the update file ( Analysis crashes when the upgrade file does not exist. Along with my previous comment I would say that this property should be equal to 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. It's not this property, but the database version property in your H2 database that governs which upgrade SQL is searched for. This property governs the expected database version (and if actual is lower than that will search for upgrade scripts to update the H2 database |
||
data.version=5.2.2 | ||
|
||
#The analysis timeout in minutes | ||
odc.analysis.timeout=180 | ||
|
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.