Daniel Lenski (Inactive)
added a comment - There is one code path that specifically deals with incorrectly-specified values ( https://github.com/MariaDB/server/blob/e71aecfd308d6093fd693044253518a872994394/mysys/my_getopt.c#L484-L487 ), but it's only for boolean-valued variables.
As mentioned above, MDEV-22219 which was fixed for 10.6 and above, made it so that negative values no longer equate to the maximum value.
Thus this issue only affects versions 10.6+. MariaDB versions below 10.6 are not affected by this issue since negative values still default to the maximum allowed value.
EDIT:
The nature of this problem exists in versions <10.6 as-well. This same problem happens if you pass in an invalid data type for the argument (e.g. specifying characters for a numeric argument) or if you pass in a value that can't be represented with the argument type (e.g. a number that cannot be represented with 64 bits).
Tony Chen
added a comment - - edited As mentioned above, MDEV-22219 which was fixed for 10.6 and above, made it so that negative values no longer equate to the maximum value.
Thus this issue only affects versions 10.6+ . MariaDB versions below 10.6 are not affected by this issue since negative values still default to the maximum allowed value.
EDIT:
The nature of this problem exists in versions <10.6 as-well. This same problem happens if you pass in an invalid data type for the argument (e.g. specifying characters for a numeric argument) or if you pass in a value that can't be represented with the argument type (e.g. a number that cannot be represented with 64 bits).
Tony Chen
added a comment - - edited Update
I have a working solution to address this issue but it depends on https://github.com/MariaDB/server/pull/2935 to be merged first.
https://github.com/MariaDB/server/pull/3120
People
Andrew Hutchings (Inactive)
Daniel Lenski (Inactive)
Votes:
0Vote for this issue
Watchers:
5Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1236.5999999046326,"ttfb":364.59999990463257,"pageVisibility":"visible","entityId":127940,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"7e7a39af-c841-4876-a567-705ce346a362","navigationType":0,"readyForUser":1341.1999998092651,"redirectCount":0,"resourceLoadedEnd":926.5,"resourceLoadedStart":370,"resourceTiming":[{"duration":174.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":370,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":370,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":544.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":174.7000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":370.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":370.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":545,"responseStart":0,"secureConnectionStart":0},{"duration":441.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":370.5,"connectEnd":370.5,"connectStart":370.5,"domainLookupEnd":370.5,"domainLookupStart":370.5,"fetchStart":370.5,"redirectEnd":0,"redirectStart":0,"requestStart":557,"responseEnd":812.2999997138977,"responseStart":573.4000000953674,"secureConnectionStart":370.5},{"duration":555.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":370.7999997138977,"connectEnd":370.7999997138977,"connectStart":370.7999997138977,"domainLookupEnd":370.7999997138977,"domainLookupStart":370.7999997138977,"fetchStart":370.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":558.1999998092651,"responseEnd":926.5,"responseStart":572,"secureConnectionStart":370.7999997138977},{"duration":214.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":370.90000009536743,"connectEnd":370.90000009536743,"connectStart":370.90000009536743,"domainLookupEnd":370.90000009536743,"domainLookupStart":370.90000009536743,"fetchStart":370.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":558.5,"responseEnd":585.1999998092651,"responseStart":583.2999997138977,"secureConnectionStart":370.90000009536743},{"duration":213.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":371.09999990463257,"connectEnd":371.09999990463257,"connectStart":371.09999990463257,"domainLookupEnd":371.09999990463257,"domainLookupStart":371.09999990463257,"fetchStart":371.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":558.5999999046326,"responseEnd":584.6999998092651,"responseStart":581.5999999046326,"secureConnectionStart":371.09999990463257},{"duration":213.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":371.40000009536743,"connectEnd":371.40000009536743,"connectStart":371.40000009536743,"domainLookupEnd":371.40000009536743,"domainLookupStart":371.40000009536743,"fetchStart":371.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":558.5999999046326,"responseEnd":585.0999999046326,"responseStart":582.5,"secureConnectionStart":371.40000009536743},{"duration":184.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":371.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":371.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":556.5,"responseStart":0,"secureConnectionStart":0},{"duration":285.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":371.69999980926514,"connectEnd":371.69999980926514,"connectStart":371.69999980926514,"domainLookupEnd":371.69999980926514,"domainLookupStart":371.69999980926514,"fetchStart":371.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":558.7999997138977,"responseEnd":657,"responseStart":655.2999997138977,"secureConnectionStart":371.69999980926514},{"duration":184.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":372.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":372.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":557.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":215.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":372.7999997138977,"connectEnd":372.7999997138977,"connectStart":372.7999997138977,"domainLookupEnd":372.7999997138977,"domainLookupStart":372.7999997138977,"fetchStart":372.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":566.2999997138977,"responseEnd":588.5999999046326,"responseStart":587.4000000953674,"secureConnectionStart":372.7999997138977},{"duration":517,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":378.90000009536743,"connectEnd":378.90000009536743,"connectStart":378.90000009536743,"domainLookupEnd":378.90000009536743,"domainLookupStart":378.90000009536743,"fetchStart":378.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":704.9000000953674,"responseEnd":895.9000000953674,"responseStart":887.9000000953674,"secureConnectionStart":378.90000009536743},{"duration":520.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":378.90000009536743,"connectEnd":378.90000009536743,"connectStart":378.90000009536743,"domainLookupEnd":378.90000009536743,"domainLookupStart":378.90000009536743,"fetchStart":378.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":835.9000000953674,"responseEnd":899.1999998092651,"responseStart":893.2999997138977,"secureConnectionStart":378.90000009536743},{"duration":222.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":953.7999997138977,"connectEnd":953.7999997138977,"connectStart":953.7999997138977,"domainLookupEnd":953.7999997138977,"domainLookupStart":953.7999997138977,"fetchStart":953.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1140.0999999046326,"responseEnd":1176.5999999046326,"responseStart":1175.5,"secureConnectionStart":953.7999997138977}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":132,"responseStart":364,"responseEnd":369,"domLoading":368,"domInteractive":1419,"domContentLoadedEventStart":1419,"domContentLoadedEventEnd":1477,"domComplete":2621,"loadEventStart":2621,"loadEventEnd":2622,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1385.7999997138977},{"name":"bigPipe.sidebar-id.end","time":1386.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1386.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1389.4000000953674},{"name":"activityTabFullyLoaded","time":1494.4000000953674}],"measures":[],"correlationId":"41a249222a9231","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":126,"dbReadsTimeInMs":15,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
There is one code path that specifically deals with incorrectly-specified values (https://github.com/MariaDB/server/blob/e71aecfd308d6093fd693044253518a872994394/mysys/my_getopt.c#L484-L487), but it's only for boolean-valued variables.