[Home]

Summary:ASTERISK-25874: app_voicemail: Stack buffer overflow in test_voicemail_notify_endl
Reporter:Badalian Vyacheslav (slavon)Labels:
Date Opened:2016-03-29 23:24:54Date Closed:2016-04-12 20:29:28
Priority:MinorRegression?
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:13.8.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:From last 13 branch


{code}
*CLI> test execute all
Running all available tests...

START  /apps/app_gosub/ - gosub application
   -- Registered extension context 'tests_test_gosub_virtual_context'; registrar: test_gosub
   -- Added extension 's' priority 1 to tests_test_gosub_virtual_context
[Mar 30 04:21:28] ERROR[13395]: app_stack.c:594 gosub_exec: Attempt to reach a non-existent destination for Gosub: (Context:test, Extension:dne, Priority:1)
END    /apps/app_gosub/ - gosub application Time: 2ms Result: PASS
START  /apps/app_voicemail/ - test_voicemail_vm_info
[Mar 30 04:21:28] ERROR[13395]: app_voicemail.c:12377 acf_vm_info: VM_INFO requires an argument (<mailbox>[@<context>],attribute[,folder])
[Mar 30 04:21:28] ERROR[13395]: app_voicemail.c:12427 acf_vm_info: Unknown attribute 'badparam' for VM_INFO
[Mar 30 04:21:28] ERROR[13395]: app_voicemail.c:12387 acf_vm_info: VM_INFO requires an argument (<mailbox>[@<context>],attribute[,folder])
END    /apps/app_voicemail/ - test_voicemail_vm_info Time: <1ms Result: PASS
START  /apps/app_voicemail/ - test_voicemail_load_config
 == Parsing '/tmp/voicemail.conf.m5OVDd': Found
END    /apps/app_voicemail/ - test_voicemail_load_config Time: 6ms Result: PASS
START  /apps/app_voicemail/ - test_voicemail_notify_endl

=================================================================
==13395==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffe222a7e8f at pc 0x7f3d5a21147c bp 0x7ffe222a78e0 sp 0x7ffe222a78d8
READ of size 1 at 0x7ffe222a7e8f thread T0
   #0 0x7f3d5a21147b in test_voicemail_notify_endl /usr/src/asterisk/apps/app_voicemail.c:14454
   #1 0x7cf627 in test_execute /usr/src/asterisk/main/test.c:253
   #2 0x7d01a9 in test_execute_multiple /usr/src/asterisk/main/test.c:371
   #3 0x7d2e5d in test_cli_execute_registered /usr/src/asterisk/main/test.c:833
   #4 0x5a2fed in ast_cli_command_full /usr/src/asterisk/main/cli.c:2757
   #5 0x4876c4 in consolehandler /usr/src/asterisk/main/asterisk.c:2328
   #6 0x493c99 in asterisk_daemon /usr/src/asterisk/main/asterisk.c:4792
   #7 0x4926cc in main /usr/src/asterisk/main/asterisk.c:4289
   #8 0x7f3d96a7fb44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
   #9 0x432d43  (/usr/sbin/asterisk+0x432d43)

==13395==AddressSanitizer CHECK failed: /usr/src/gcc/libsanitizer/asan/asan_report.cc:263 "((res)) != (0)" (0x0, 0x0)
   #0 0x7f3d996d3984  (/usr/local/lib64/libasan.so.2+0x9b984)
   #1 0x7f3d996d83e3 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/usr/local/lib64/libasan.so.2+0xa03e3)
   #2 0x7f3d996cfa1c  (/usr/local/lib64/libasan.so.2+0x97a1c)
   #3 0x7f3d996cfe85  (/usr/local/lib64/libasan.so.2+0x97e85)
   #4 0x7f3d99660830  (/usr/local/lib64/libasan.so.2+0x28830)
   #5 0x7f3d996d1180  (/usr/local/lib64/libasan.so.2+0x99180)
   #6 0x7f3d996d29d2 in __asan_report_error (/usr/local/lib64/libasan.so.2+0x9a9d2)
   #7 0x7f3d996d3e33 in __asan_report_load1 (/usr/local/lib64/libasan.so.2+0x9be33)
   #8 0x7f3d5a21147b in test_voicemail_notify_endl /usr/src/asterisk/apps/app_voicemail.c:14454
   #9 0x7cf627 in test_execute /usr/src/asterisk/main/test.c:253
   #10 0x7d01a9 in test_execute_multiple /usr/src/asterisk/main/test.c:371
   #11 0x7d2e5d in test_cli_execute_registered /usr/src/asterisk/main/test.c:833
   #12 0x5a2fed in ast_cli_command_full /usr/src/asterisk/main/cli.c:2757
   #13 0x4876c4 in consolehandler /usr/src/asterisk/main/asterisk.c:2328
   #14 0x493c99 in asterisk_daemon /usr/src/asterisk/main/asterisk.c:4792
   #15 0x4926cc in main /usr/src/asterisk/main/asterisk.c:4289
   #16 0x7f3d96a7fb44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
   #17 0x432d43  (/usr/sbin/asterisk+0x432d43)


{code}
Comments:By: Asterisk Team (asteriskteam) 2016-03-29 23:24:54.855-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].