ERROR TYPE: NEGATIVE_RETURNS MODULE SUPPORT LEVEL: core Generated on: 2012-04-10 12:02:08.351418 ------------------------------------------------ FINDING #0 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/ast_expr2.c:1964: var_tested_neg: Assigning: "ast_yychar" = a negative value. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/ast_expr2.c:2321: negative_returns: Passing variable "ast_yychar" to a parameter that cannot be negative. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/ast_expr2.c:1350: index: Indexing with parameter "ast_yychar". FINDING #1 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/db1-ast/hash/hash_page.c:588: var_tested_neg: Variable "hashp->fp" tests negative. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/db1-ast/hash/hash_page.c:590: var_assign: Assigning: signed variable "fd" = "hashp->fp". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/db1-ast/hash/hash_page.c:610: negative_returns: "fd" is passed to a parameter that cannot be negative. FINDING #2 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/apps/app_voicemail.c:4079: negative_return_fn: Function "read(ifd, buf, sizeof (buf) /*4096*/)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/apps/app_voicemail.c:4079: var_assign: Assigning: signed variable "len" = "read". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/apps/app_voicemail.c:4087: negative_returns: "len" is passed to a parameter that cannot be negative. FINDING #3 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/apps/app_voicemail.c:3838: negative_return_fn: Function "lseek(fd, 0L, 2)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/apps/app_voicemail.c:3838: var_assign: Assigning: unsigned variable "fdlen" = "lseek". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/apps/app_voicemail.c:3841: negative_returns: "fdlen" is passed to a parameter that cannot be negative. FINDING #4 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/chan_agent.c:738: negative_return_fn: Function "__ao2_unlock(ast, "chan_agent.c", , 738, "ast")" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/astobj2.c:165: return_negative_constant: Explicitly returning negative value "-1". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/chan_agent.c:738: var_assign: Assigning: signed variable "res" = "__ao2_unlock". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/chan_agent.c:739: negative_returns: "res" is passed to a parameter that cannot be negative. FINDING #5 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/chan_dahdi.c:8620: negative_return_fn: Function "_dahdi_get_index(ast, p, 1, , 8620UL)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/chan_dahdi.c:3646: assign_neg_constant: Assigning: "res" = "-1", which is negative. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/chan_dahdi.c:3652: return_negative_variable: Explicitly returning negative variable "res". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/chan_dahdi.c:8620: var_assign: Assigning: signed variable "idx" = "_dahdi_get_index". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/chan_dahdi.c:8622: negative_returns: Using variable "idx" as an index to array "p->subs". FINDING #6 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/sig_analog.c:2643: negative_return_fn: Function "_analog_get_index(ast, p, 0, , 2643UL)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/sig_analog.c:387: assign_neg_constant: Assigning: "res" = "-1", which is negative. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/sig_analog.c:394: return_negative_variable: Explicitly returning negative variable "res". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/sig_analog.c:2643: var_assign: Assigning: unsigned variable "idx" = "_analog_get_index". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/channels/sig_analog.c:2656: negative_returns: Using variable "idx" as an index to array "p->subs". FINDING #7 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/frame.c:1187: var_tested_neg: Assigning: "idx" = a negative value. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/frame.c:1207: negative_returns: Using variable "idx" as an index to array "AST_FORMAT_LIST". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/frame.c:1209: negative_returns: Using variable "idx" as an index to array "AST_FORMAT_LIST". FINDING #8 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1055: negative_return_fn: Function "powerof(x)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:95: return_negative_constant: Explicitly returning negative value "-1". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1055: negative_returns: Using variable "powerof(x)" as an index to array "tr_matrix[src_audio]". FINDING #9 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1061: negative_return_fn: Function "powerof(x)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:95: return_negative_constant: Explicitly returning negative value "-1". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1061: negative_returns: Using variable "powerof(x)" as an index to array "tr_matrix". FINDING #10 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1085: negative_return_fn: Function "powerof(x)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:95: return_negative_constant: Explicitly returning negative value "-1". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1085: negative_returns: Using variable "powerof(x)" as an index to array "tr_matrix[src_video]". FINDING #11 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1091: negative_return_fn: Function "powerof(x)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:95: return_negative_constant: Explicitly returning negative value "-1". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1091: negative_returns: Using variable "powerof(x)" as an index to array "tr_matrix". FINDING #12 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1027: negative_return_fn: Function "powerof(src_audio)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:95: return_negative_constant: Explicitly returning negative value "-1". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1027: var_assign: Assigning: signed variable "src_audio" = "powerof". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:1055: negative_returns: Using variable "src_audio" as an index to array "tr_matrix". FINDING #13 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_g719.c:109: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_g719.c:109: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #14 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_g723.c:122: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_g723.c:122: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #15 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_g729.c:117: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_g729.c:117: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #16 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_gsm.c:116: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_gsm.c:116: var_assign: Assigning: signed variable "max" = "ftello". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_gsm.c:128: var_assign: Assigning: signed variable "offset" = "max". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_gsm.c:138: negative_returns: "offset" is passed to a parameter that cannot be negative. FINDING #17 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_gsm.c:143: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_gsm.c:143: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #18 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_h263.c:153: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_h263.c:153: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #19 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_h264.c:142: negative_return_fn: Function "ftell(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_h264.c:142: negative_returns: "ftell(fs->f)" is passed to a parameter that cannot be negative. FINDING #20 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_pcm.c:409: negative_return_fn: Function "ftell(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_pcm.c:409: negative_returns: "ftell(fs->f)" is passed to a parameter that cannot be negative. FINDING #21 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_pcm.c:110: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_pcm.c:110: var_assign: Assigning: signed variable "max" = "ftello". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_pcm.c:145: var_assign: Assigning: signed variable "offset" = "max". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_pcm.c:147: negative_returns: "offset" is passed to a parameter that cannot be negative. FINDING #22 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_pcm.c:154: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_pcm.c:154: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #23 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_siren14.c:109: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_siren14.c:109: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #24 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_siren7.c:109: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_siren7.c:109: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #25 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_sln.c:102: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_sln.c:102: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #26 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_sln16.c:109: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_sln16.c:109: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #27 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_wav.c:478: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_wav.c:478: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #28 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_wav_gsm.c:484: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_wav_gsm.c:484: var_assign: Assigning: signed variable "max" = "ftello". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_wav_gsm.c:498: var_assign: Assigning: signed variable "offset" = "max". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_wav_gsm.c:509: negative_returns: "offset" is passed to a parameter that cannot be negative. FINDING #29 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_wav_gsm.c:514: negative_return_fn: Function "ftello(fs->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/formats/format_wav_gsm.c:514: negative_returns: "ftello(fs->f)" is passed to a parameter that cannot be negative. FINDING #30 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:513: negative_return_fn: Function "ftello(ff)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:513: var_assign: Assigning: signed variable "offset" = "ftello". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:529: negative_returns: "offset" is passed to a parameter that cannot be negative. FINDING #31 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:786: negative_return_fn: Function "ftello(ff)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:786: var_assign: Assigning: signed variable "offset" = "ftello". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:798: negative_returns: "offset" is passed to a parameter that cannot be negative. FINDING #32 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:948: negative_return_fn: Function "ftello(ff)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:948: var_assign: Assigning: signed variable "truncsize" = "ftello". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:950: negative_returns: "truncsize" is passed to a parameter that cannot be negative. FINDING #33 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:1117: negative_return_fn: Function "ftello(ff)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:1117: var_assign: Assigning: signed variable "cur" = "ftello". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:1125: negative_returns: "cur" is passed to a parameter that cannot be negative. FINDING #34 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:973: negative_return_fn: Function "ftello(ff)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:973: var_assign: Assigning: signed variable "flength" = "ftello". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:1084: var_assign: Assigning: signed variable "length_offset" = "flength". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/funcs/func_env.c:1163: negative_returns: "length_offset" is passed to a parameter that cannot be negative. FINDING #35 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/editline/tty.c:1083: var_tested_neg: Assigning: "i" = a negative value. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/editline/tty.c:1094: negative_returns: Using variable "i" as an index to array "el->el_tty.t_t[z]". FINDING #36 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/asterisk.c:2169: negative_return_fn: Function "read(ast_consock, buf, 511UL)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/asterisk.c:2169: var_assign: Assigning: signed variable "res" = "read". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/asterisk.c:2199: negative_returns: Using variable "res" as an index to array "buf". FINDING #37 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/asterisk.c:2489: negative_return_fn: Function "read(ast_consock, buf, 2047UL)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/asterisk.c:2489: var_assign: Assigning: signed variable "res" = "read". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/asterisk.c:2490: negative_returns: Using variable "res" as an index to array "buf". FINDING #38 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:3527: negative_return_fn: Function "lseek(fd, 0L, 2)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:3527: var_assign: Assigning: signed variable "l" = "lseek". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:3534: negative_returns: "l" is passed to a parameter that cannot be negative. FINDING #39 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:3519: negative_return_fn: Function "mkstemp(template)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:3519: var_assign: Assigning: signed variable "fd" = "mkstemp". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:3526: negative_returns: "fd" is passed to a parameter that cannot be negative. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/cli.c:2470: neg_sink_parm_call: Passing "fd" to "ast_cli", which cannot accept a negative. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/cli.c:115: neg_sink_parm_call: Passing "fd" to "ast_carefulwrite", which cannot accept a negative. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/utils.c:1160: neg_sink_parm_call: Passing "fd" to "write", which cannot accept a negative. FINDING #40 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:3519: negative_return_fn: Function "mkstemp(template)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:3519: var_assign: Assigning: signed variable "fd" = "mkstemp". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:3527: negative_returns: "fd" is passed to a parameter that cannot be negative. FINDING #41 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:5493: negative_return_fn: Function "ftell(s->f)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:5493: var_assign: Assigning: unsigned variable "l" = "ftell". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/manager.c:5494: negative_returns: "l" is passed to a parameter that cannot be negative. FINDING #42 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:669: negative_return_fn: Function "powerof((format_list + i).bits)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:95: return_negative_constant: Explicitly returning negative value "-1". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:669: var_assign: Assigning: signed variable "dst" = "powerof". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:672: negative_returns: Using variable "dst" as an index to array "tr_matrix[src]". FINDING #43 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:670: negative_return_fn: Function "powerof(input_src)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:95: return_negative_constant: Explicitly returning negative value "-1". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:670: var_assign: Assigning: signed variable "src" = "powerof". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/translate.c:672: negative_returns: Using variable "src" as an index to array "tr_matrix". FINDING #44 [extended]: /builddir/build/BUILD/asterisk-1.8.6.0/pbx/pbx_lua.c:986: negative_return_fn: Function "ftell(f)" returns a negative number. [extended]: /builddir/build/BUILD/asterisk-1.8.6.0/pbx/pbx_lua.c:986: var_assign: Assigning: signed variable "*size" = "ftell". [extended]: /builddir/build/BUILD/asterisk-1.8.6.0/pbx/pbx_lua.c:995: negative_returns: "*size" is passed to a parameter that cannot be negative. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/include/asterisk/utils.h:457: neg_sink_parm_call: Passing "len" to "malloc", which cannot accept a negative. FINDING #45 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_agi.c:1300: negative_return_fn: Function "read(fds[0], agi_buffer, 1024UL)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_agi.c:1300: var_assign: Assigning: signed variable "res" = "read". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_agi.c:1307: negative_returns: Using variable "res" as an index to array "agi_buffer". FINDING #46 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_agi.c:1330: negative_return_fn: Function "read(fds[0], agi_buffer, 1024UL)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_agi.c:1330: var_assign: Assigning: signed variable "res" = "read". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_agi.c:1343: negative_returns: Using variable "res" as an index to array "agi_buffer". FINDING #47 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_musiconhold.c:635: negative_return_fn: Function "spawn_mp3(class)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_musiconhold.c:578: return_negative_constant: Explicitly returning negative value "-1". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_musiconhold.c:635: var_assign: Assigning: signed variable "class->srcfd" = "spawn_mp3". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_musiconhold.c:679: negative_returns: "class->srcfd" is passed to a parameter that cannot be negative. FINDING #48 [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_rtp_asterisk.c:1951: negative_return_fn: Function "ast_rtp_codecs_payload_code(ast_rtp_instance_get_codecs(instance1), payload_type.asterisk_format, payload_type.code)" returns a negative number. [core]: /builddir/build/BUILD/asterisk-1.8.6.0/main/rtp_engine.c:665: return_negative_constant: Explicitly returning negative value "-1". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_rtp_asterisk.c:1951: var_assign: Assigning: signed variable "bridged_payload" = "ast_rtp_codecs_payload_code". [core]: /builddir/build/BUILD/asterisk-1.8.6.0/res/res_rtp_asterisk.c:1954: negative_returns: Using variable "bridged_payload" as an index to array "ast_rtp_instance_get_codecs(instance1)->payloads".