-
Bug
-
-
Major
-
Resolution:
Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL)
-
-
-
CREATE TABLE t1 (v2 varchar(35)) ENGINE=InnoDB;
|
INSERT INTO t1 VALUES ('Rae Bareli');
|
|
SELECT PERIOD_DIFF('2018-07-24', (AES_ENCRYPT(v2, v2))) FROM t1;
|
=================================================================
|
==18339==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7feeddbeb6d4 at pc 0x5587b0e7ec11 bp 0x7feeddbeb590 sp 0x7feeddbeb580
|
WRITE of size 1 at 0x7feeddbeb6d4 thread T27
|
#0 0x5587b0e7ec10 in int10_to_str /git/10.3/strings/int2str.c:174
|
#1 0x5587af1ba12b in Protocol_text::store_long(long long) /git/10.3/sql/protocol.cc:1171
|
#2 0x5587af86dc2b in Type_handler::Item_send_long(Item*, Protocol*, st_value*) const /git/10.3/sql/sql_type.cc:5306
|
#3 0x5587af874f75 in Type_handler_long::Item_send(Item*, Protocol*, st_value*) const (/git/10.3/sql/mysqld+0x147bf75)
|
#4 0x5587af1c42bf in Item::send(Protocol*, st_value*) /git/10.3/sql/item.h:877
|
#5 0x5587af1b7fe9 in Protocol::send_result_set_row(List<Item>*) /git/10.3/sql/protocol.cc:986
|
#6 0x5587af321379 in select_send::send_data(List<Item>&) /git/10.3/sql/sql_class.cc:2932
|
#7 0x5587af51eb50 in end_send /git/10.3/sql/sql_select.cc:20451
|
#8 0x5587af51764b in evaluate_join_record /git/10.3/sql/sql_select.cc:19491
|
#9 0x5587af51624f in sub_select(JOIN*, st_join_table*, bool) /git/10.3/sql/sql_select.cc:19271
|
#10 0x5587af5146ee in do_select /git/10.3/sql/sql_select.cc:18811
|
#11 0x5587af4b4016 in JOIN::exec_inner() /git/10.3/sql/sql_select.cc:4021
|
#12 0x5587af4b1d5b in JOIN::exec() /git/10.3/sql/sql_select.cc:3815
|
#13 0x5587af4b512d in mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /git/10.3/sql/sql_select.cc:4220
|
#14 0x5587af490972 in handle_select(THD*, LEX*, select_result*, unsigned long) /git/10.3/sql/sql_select.cc:382
|
#15 0x5587af4164c3 in execute_sqlcom_select /git/10.3/sql/sql_parse.cc:6542
|
#16 0x5587af404cd6 in mysql_execute_command(THD*) /git/10.3/sql/sql_parse.cc:3765
|
#17 0x5587af41edd1 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /git/10.3/sql/sql_parse.cc:8073
|
#18 0x5587af3f9ab8 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /git/10.3/sql/sql_parse.cc:1847
|
#19 0x5587af3f6c50 in do_command(THD*) /git/10.3/sql/sql_parse.cc:1392
|
#20 0x5587af7460b5 in do_handle_one_connection(CONNECT*) /git/10.3/sql/sql_connect.cc:1402
|
#21 0x5587af745a92 in handle_one_connection /git/10.3/sql/sql_connect.cc:1308
|
#22 0x5587b0c842e2 in pfs_spawn_thread /git/10.3/storage/perfschema/pfs.cc:1862
|
#23 0x7feef6f296b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
|
#24 0x7feef63be41c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10741c)
|
|
Address 0x7feeddbeb6d4 is located in stack of thread T27 at offset 52 in frame
|
#0 0x5587af1b9d97 in Protocol_text::store_long(long long) /git/10.3/sql/protocol.cc:1162
|
|
This frame has 1 object(s):
|
[32, 52) 'buff' <== Memory access at offset 52 overflows this variable
|
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
|
(longjmp and C++ exceptions *are* supported)
|
Thread T27 created by T0 here:
|
#0 0x7feef8687253 in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x36253)
|
#1 0x5587b0c846cf in spawn_thread_v1 /git/10.3/storage/perfschema/pfs.cc:1912
|
#2 0x5587af179a44 in inline_mysql_thread_create /git/10.3/include/mysql/psi/mysql_thread.h:1268
|
#3 0x5587af18edc3 in create_thread_to_handle_connection(CONNECT*) /git/10.3/sql/mysqld.cc:6557
|
#4 0x5587af18f4c3 in create_new_thread /git/10.3/sql/mysqld.cc:6627
|
#5 0x5587af190500 in handle_connections_sockets() /git/10.3/sql/mysqld.cc:6902
|
#6 0x5587af18e283 in mysqld_main(int, char**) /git/10.3/sql/mysqld.cc:6179
|
#7 0x5587af17816f in main /git/10.3/sql/main.cc:25
|
#8 0x7feef62d782f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
|
|
SUMMARY: AddressSanitizer: stack-buffer-overflow /git/10.3/strings/int2str.c:174 int10_to_str
|
Shadow bytes around the buggy address:
|
0x0ffe5bb75680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ffe5bb75690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ffe5bb756a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ffe5bb756b0: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00
|
0x0ffe5bb756c0: 00 00 00 00 00 00 01 f4 f4 f4 f3 f3 f3 f3 00 00
|
=>0x0ffe5bb756d0: 00 00 00 00 f1 f1 f1 f1 00 00[04]f4 f3 f3 f3 f3
|
0x0ffe5bb756e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ffe5bb756f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ffe5bb75700: f1 f1 f1 f1 00 00 00 00 f2 f2 f2 f2 00 00 00 00
|
0x0ffe5bb75710: f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ffe5bb75720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
Shadow byte legend (one shadow byte represents 8 application bytes):
|
Addressable: 00
|
Partially addressable: 01 02 03 04 05 06 07
|
Heap left redzone: fa
|
Heap right redzone: fb
|
Freed heap region: fd
|
Stack left redzone: f1
|
Stack mid redzone: f2
|
Stack right redzone: f3
|
Stack partial redzone: f4
|
Stack after return: f5
|
Stack use after scope: f8
|
Global redzone: f9
|
Global init order: f6
|
Poisoned by user: f7
|
Container overflow: fc
|
Array cookie: ac
|
Intra object redzone: bb
|
ASan internal: fe
|
==18339==ABORTING
|
----------SERVER LOG END-------------
|
There are no comments yet on this issue.
{"report":{"fcp":878,"ttfb":325.69999980926514,"pageVisibility":"visible","entityId":68827,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"3572f0b2-cb1d-4bb1-b04c-553025c146ca","navigationType":0,"readyForUser":962.6000003814697,"redirectCount":0,"resourceLoadedEnd":718.1000003814697,"resourceLoadedStart":331,"resourceTiming":[{"duration":17.800000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":331,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":348.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":17.800000190734863,"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":331.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":349.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":79.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":331.5,"connectEnd":331.5,"connectStart":331.5,"domainLookupEnd":331.5,"domainLookupStart":331.5,"fetchStart":331.5,"redirectEnd":0,"redirectStart":0,"requestStart":354.1000003814697,"responseEnd":411.1000003814697,"responseStart":370.1000003814697,"secureConnectionStart":331.5},{"duration":96.69999980926514,"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":331.69999980926514,"connectEnd":331.69999980926514,"connectStart":331.69999980926514,"domainLookupEnd":331.69999980926514,"domainLookupStart":331.69999980926514,"fetchStart":331.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":354.19999980926514,"responseEnd":428.3999996185303,"responseStart":377.69999980926514,"secureConnectionStart":331.69999980926514},{"duration":40.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":331.80000019073486,"connectEnd":331.80000019073486,"connectStart":331.80000019073486,"domainLookupEnd":331.80000019073486,"domainLookupStart":331.80000019073486,"fetchStart":331.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":354.19999980926514,"responseEnd":372.30000019073486,"responseStart":371.5,"secureConnectionStart":331.80000019073486},{"duration":51.59999942779541,"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":332.1000003814697,"connectEnd":332.1000003814697,"connectStart":332.1000003814697,"domainLookupEnd":332.1000003814697,"domainLookupStart":332.1000003814697,"fetchStart":332.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":356.1000003814697,"responseEnd":383.69999980926514,"responseStart":382.8999996185303,"secureConnectionStart":332.1000003814697},{"duration":49.39999961853027,"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":332.30000019073486,"connectEnd":332.30000019073486,"connectStart":332.30000019073486,"domainLookupEnd":332.30000019073486,"domainLookupStart":332.30000019073486,"fetchStart":332.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":356.5,"responseEnd":381.69999980926514,"responseStart":381.1000003814697,"secureConnectionStart":332.30000019073486},{"duration":24.300000190734863,"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":332.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":332.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":356.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":65.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":332.69999980926514,"connectEnd":332.69999980926514,"connectStart":332.69999980926514,"domainLookupEnd":332.69999980926514,"domainLookupStart":332.69999980926514,"fetchStart":332.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":362.69999980926514,"responseEnd":397.80000019073486,"responseStart":396.8999996185303,"secureConnectionStart":332.69999980926514},{"duration":31.59999942779541,"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":332.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":332.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":364.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":46.89999961853027,"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":333,"connectEnd":365.5,"connectStart":365.5,"domainLookupEnd":365.5,"domainLookupStart":365.5,"fetchStart":333,"redirectEnd":0,"redirectStart":0,"requestStart":365.69999980926514,"responseEnd":379.8999996185303,"responseStart":376.80000019073486,"secureConnectionStart":365.5},{"duration":78.90000057220459,"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":345.19999980926514,"connectEnd":345.19999980926514,"connectStart":345.19999980926514,"domainLookupEnd":345.19999980926514,"domainLookupStart":345.19999980926514,"fetchStart":345.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":409.5,"responseEnd":424.1000003814697,"responseStart":423,"secureConnectionStart":345.19999980926514},{"duration":372.70000076293945,"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":345.3999996185303,"connectEnd":345.3999996185303,"connectStart":345.3999996185303,"domainLookupEnd":345.3999996185303,"domainLookupStart":345.3999996185303,"fetchStart":345.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":475.8999996185303,"responseEnd":718.1000003814697,"responseStart":709.3000001907349,"secureConnectionStart":345.3999996185303},{"duration":211.5999994277954,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":610.8000001907349,"connectEnd":610.8000001907349,"connectStart":610.8000001907349,"domainLookupEnd":610.8000001907349,"domainLookupStart":610.8000001907349,"fetchStart":610.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":789.6999998092651,"responseEnd":822.3999996185303,"responseStart":821.6000003814697,"secureConnectionStart":610.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":167,"responseStart":326,"responseEnd":345,"domLoading":329,"domInteractive":1022,"domContentLoadedEventStart":1022,"domContentLoadedEventEnd":1062,"domComplete":1678,"loadEventStart":1678,"loadEventEnd":1678,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1006.3999996185303},{"name":"bigPipe.sidebar-id.end","time":1007.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1007.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1007.8000001907349},{"name":"activityTabFullyLoaded","time":1070.5}],"measures":[],"correlationId":"b9abb6cba9b465","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":84,"dbReadsTimeInMs":9,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}