[asterisk-bugs] [JIRA] (ASTERISK-26532) [UBSAN] codec_g726.c:runtime error: left shift of negative value -12

Corey Farrell (JIRA) noreply at issues.asterisk.org
Sun Oct 30 14:34:10 CDT 2016


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Corey Farrell closed ASTERISK-26532.
------------------------------------

    Resolution: Not A Bug

This is not necessarily a bug.  Left shift of a negative value may not make sense from human mathematical rules, but that doesn't automatically make it invalid for a computer algorithm.

For this ticket to be reopened I would want to see a reproducible example of the codec translation introducing an audio problem (distortion, clicks, change of audio tone).  Without proof of a real world problem the risk of changing this is too high.

> [UBSAN] codec_g726.c:runtime error: left shift of negative value -12
> --------------------------------------------------------------------
>
>                 Key: ASTERISK-26532
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26532
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 13.12.1, 14.1.1, GIT
>            Reporter: Badalian Vyacheslav
>
> {code}
> codec_g726.c:678:25: runtime error: left shift of negative value -12
>     #0 0x7fe47cafef91  (/tmp/asterisk-testsuite/86ef220a01cc7fa06596ddd595bec9bf/run_1/ast1/usr/lib/asterisk/modules/codec_g726.so+0x10f91)
>     #1 0x7fe47cb002fc  (/tmp/asterisk-testsuite/86ef220a01cc7fa06596ddd595bec9bf/run_1/ast1/usr/lib/asterisk/modules/codec_g726.so+0x122fc)
>     #2 0x9605d1 in framein /usr/src/asterisk/main/translate.c:423
>     #3 0x962d93 in generate_computational_cost /usr/src/asterisk/main/translate.c:672
>     #4 0x96857e in __ast_register_translator /usr/src/asterisk/main/translate.c:1217
>     #5 0x7fe47cb0083e  (/tmp/asterisk-testsuite/86ef220a01cc7fa06596ddd595bec9bf/run_1/ast1/usr/lib/asterisk/modules/codec_g726.so+0x1283e)
>     #6 0x76089c in start_resource /usr/src/asterisk/main/loader.c:1029
>     #7 0x763941 in load_resource_list /usr/src/asterisk/main/loader.c:1293
>     #8 0x764e6e in load_modules /usr/src/asterisk/main/loader.c:1454
>     #9 0x4bf34f in asterisk_daemon /usr/src/asterisk/main/asterisk.c:4616
>     #10 0x4be642 in main /usr/src/asterisk/main/asterisk.c:4373
>     #11 0x7fe4ad989b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
>     #12 0x433918  (/usr/sbin/asterisk+0x433918)
> {code}
> second place:
> {code}
> codec_g726.c:621:25: runtime error: left shift of negative value -12
>     #0 0x7fe47cafeb01  (/tmp/asterisk-testsuite/86ef220a01cc7fa06596ddd595bec9bf/run_1/ast1/usr/lib/asterisk/modules/codec_g726.so+0x10b01)
>     #1 0x7fe47caffdd1  (/tmp/asterisk-testsuite/86ef220a01cc7fa06596ddd595bec9bf/run_1/ast1/usr/lib/asterisk/modules/codec_g726.so+0x11dd1)
>     #2 0x9605d1 in framein /usr/src/asterisk/main/translate.c:423
>     #3 0x962d93 in generate_computational_cost /usr/src/asterisk/main/translate.c:672
>     #4 0x96857e in __ast_register_translator /usr/src/asterisk/main/translate.c:1217
>     #5 0x7fe47cb007e0  (/tmp/asterisk-testsuite/86ef220a01cc7fa06596ddd595bec9bf/run_1/ast1/usr/lib/asterisk/modules/codec_g726.so+0x127e0)
>     #6 0x76089c in start_resource /usr/src/asterisk/main/loader.c:1029
>     #7 0x763941 in load_resource_list /usr/src/asterisk/main/loader.c:1293
>     #8 0x764e6e in load_modules /usr/src/asterisk/main/loader.c:1454
>     #9 0x4bf34f in asterisk_daemon /usr/src/asterisk/main/asterisk.c:4616
>     #10 0x4be642 in main /usr/src/asterisk/main/asterisk.c:4373
>     #11 0x7fe4ad989b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
>     #12 0x433918  (/usr/sbin/asterisk+0x433918)
> {code}
> {code}
> root at 0bfa9456f68a:/usr/src/asterisk# git log
> commit 6b1c55dc9be90904363dbcf958a9fcc243c85629
> Author: George Joseph <gjoseph at digium.com>
> Date:   Fri Oct 28 15:59:19 2016 -0600
>     pjproject_bundled:  Fix issue where "/version.mak" wasn't found
> root at 0bfa9456f68a:/usr/src/asterisk# git branch
> * 13
> {code}
> on module load...



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list