[asterisk-bugs] [JIRA] (ASTERISK-29928) logging messages truncated when using MUSL runtime

Friendly Automation (JIRA) noreply at issues.asterisk.org
Wed Mar 23 18:11:07 CDT 2022


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=258457#comment-258457 ] 

Friendly Automation commented on ASTERISK-29928:
------------------------------------------------

Change 18107 merged by Kevin Harwell:
logger: workaround woefully small BUFSIZ in MUSL

[https://gerrit.asterisk.org/c/asterisk/+/18107|https://gerrit.asterisk.org/c/asterisk/+/18107]

> logging messages truncated when using MUSL runtime
> --------------------------------------------------
>
>                 Key: ASTERISK-29928
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29928
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Logging
>    Affects Versions: 18.7.1
>         Environment: Asterisk built on OpenWRT (master) with MUSL as the C library
>            Reporter: Philip Prindeville
>            Assignee: Philip Prindeville
>
> MUSL's <stdio.h> defines BUFSIZ as 1024, and main/logger.c uses that subsequent to define its buffer length in logger_print_normal().
> Since one of the things you might want to log might be SIP messages (which can be 1482 bytes long over UDP, and longer over TLS), this is obviously inadequate.



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



More information about the asterisk-bugs mailing list