Hi, I found a potential null pointer dereference bug in the project source code, and I have shown the execution sequence of the program that may generate the bug on the graph below. The red text illustrates the steps that generate the bug, the red arrows represent the control flow,the file path can be seen in the blue framed section.
Although the code shown is for version 10.3 but is still exist in current version
would you can help to check if this bug is true?thank you for your effort and patience!
I've taken a look at nayuta's patch be0a46b3d52b58956fd0d47d040b9f4514406954 and would like to push it. holyfoot I assume you are still ok for it to be pushed?
hold on. I'm getting test failure for 10.4, patch applied to 603836e281a.
CURRENT_TEST: spider/bugfix.mdev_29644
mysqltest: At line 36: query 'INSERT INTO tbl_a VALUES ("this will be truncated")' failed: 1406: Data too long for column 'a' at row 1
Yuchen Pei
added a comment - - edited I've taken a look at nayuta's patch be0a46b3d52b58956fd0d47d040b9f4514406954 and would like to push it. holyfoot I assume you are still ok for it to be pushed?
hold on. I'm getting test failure for 10.4, patch applied to 603836e281a.
CURRENT_TEST: spider/bugfix.mdev_29644
mysqltest: At line 36: query 'INSERT INTO tbl_a VALUES ("this will be truncated")' failed: 1406: Data too long for column 'a' at row 1
Yuchen Pei
added a comment - I made some minor changes to the test case so that it passes 10.4. Can you take a look holyfoot ? Thank you. https://github.com/MariaDB/server/commit/d346bd3ab03
Thanks for the comments and review, holyfoot. The comments were incorporated and patch pushed to 10.3.
Some merge conflicts needed to be handled, and below are patches for all versions:
10.3-4: 9b32e4b1923
10.5-8: b98375f9df0
10.9-11.0: 5075f4e0dae
Yuchen Pei
added a comment - - edited Thanks for the comments and review, holyfoot . The comments were incorporated and patch pushed to 10.3.
Some merge conflicts needed to be handled, and below are patches for all versions:
10.3-4: 9b32e4b1923
10.5-8: b98375f9df0
10.9-11.0: 5075f4e0dae
People
Yuchen Pei
jaskldj
Votes:
0Vote for this issue
Watchers:
8Start 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":946,"ttfb":274.09999990463257,"pageVisibility":"visible","entityId":114984,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"cef66671-c3b9-4dce-b4c3-b895b94f1d56","navigationType":0,"readyForUser":1038.2999999523163,"redirectCount":0,"resourceLoadedEnd":659.3999999761581,"resourceLoadedStart":282.2999999523163,"resourceTiming":[{"duration":5.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":282.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":5.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":282.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":288.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":90.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":282.7999999523163,"connectEnd":282.7999999523163,"connectStart":282.7999999523163,"domainLookupEnd":282.7999999523163,"domainLookupStart":282.7999999523163,"fetchStart":282.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":291.59999990463257,"responseEnd":373.1999999284744,"responseStart":318.1999999284744,"secureConnectionStart":282.7999999523163},{"duration":131.69999992847443,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":283,"connectEnd":283,"connectStart":283,"domainLookupEnd":283,"domainLookupStart":283,"fetchStart":283,"redirectEnd":0,"redirectStart":0,"requestStart":292.6999999284744,"responseEnd":414.6999999284744,"responseStart":337.89999997615814,"secureConnectionStart":283},{"duration":58.5,"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":283.1999999284744,"connectEnd":283.1999999284744,"connectStart":283.1999999284744,"domainLookupEnd":283.1999999284744,"domainLookupStart":283.1999999284744,"fetchStart":283.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":294.1999999284744,"responseEnd":341.6999999284744,"responseStart":340.6999999284744,"secureConnectionStart":283.1999999284744},{"duration":65,"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":283.39999997615814,"connectEnd":312.6999999284744,"connectStart":312.6999999284744,"domainLookupEnd":312.6999999284744,"domainLookupStart":312.6999999284744,"fetchStart":283.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":325.2999999523163,"responseEnd":348.39999997615814,"responseStart":344.09999990463257,"secureConnectionStart":312.6999999284744},{"duration":65.69999992847443,"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":283.5,"connectEnd":283.5,"connectStart":283.5,"domainLookupEnd":283.5,"domainLookupStart":283.5,"fetchStart":283.5,"redirectEnd":0,"redirectStart":0,"requestStart":325.89999997615814,"responseEnd":349.1999999284744,"responseStart":346.59999990463257,"secureConnectionStart":283.5},{"duration":30.200000047683716,"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":283.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":313.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":65,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":283.7999999523163,"connectEnd":283.7999999523163,"connectStart":283.7999999523163,"domainLookupEnd":283.7999999523163,"domainLookupStart":283.7999999523163,"fetchStart":283.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":326,"responseEnd":348.7999999523163,"responseStart":345,"secureConnectionStart":283.7999999523163},{"duration":30.600000023841858,"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":284.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":284.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":315.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":73.69999992847443,"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":284.89999997615814,"connectEnd":284.89999997615814,"connectStart":284.89999997615814,"domainLookupEnd":284.89999997615814,"domainLookupStart":284.89999997615814,"fetchStart":284.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":336.59999990463257,"responseEnd":358.59999990463257,"responseStart":351,"secureConnectionStart":284.89999997615814},{"duration":363,"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":296.09999990463257,"connectEnd":296.09999990463257,"connectStart":296.09999990463257,"domainLookupEnd":296.09999990463257,"domainLookupStart":296.09999990463257,"fetchStart":296.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":389.2999999523163,"responseEnd":659.0999999046326,"responseStart":641.5,"secureConnectionStart":296.09999990463257},{"duration":359.89999997615814,"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":299.5,"connectEnd":299.5,"connectStart":299.5,"domainLookupEnd":299.5,"domainLookupStart":299.5,"fetchStart":299.5,"redirectEnd":0,"redirectStart":0,"requestStart":399.39999997615814,"responseEnd":659.3999999761581,"responseStart":642.5,"secureConnectionStart":299.5},{"duration":203,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":652.8999999761581,"connectEnd":652.8999999761581,"connectStart":652.8999999761581,"domainLookupEnd":652.8999999761581,"domainLookupStart":652.8999999761581,"fetchStart":652.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":815.5,"responseEnd":855.8999999761581,"responseStart":852.3999999761581,"secureConnectionStart":652.8999999761581},{"duration":272,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":930.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":930.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1202.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":62,"domainLookupEnd":74,"connectStart":74,"connectEnd":99,"secureConnectionStart":85,"requestStart":100,"responseStart":274,"responseEnd":299,"domLoading":278,"domInteractive":1121,"domContentLoadedEventStart":1121,"domContentLoadedEventEnd":1197,"domComplete":1920,"loadEventStart":1920,"loadEventEnd":1921,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1093.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1094.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1094.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1096.2999999523163},{"name":"activityTabFullyLoaded","time":1217.3999999761581}],"measures":[],"correlationId":"4fc47f012a8ed9","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
ok to push.