celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Parker (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-198) Logging can segfault for strings 512 characters or longer
Date Tue, 06 Jan 2015 22:18:34 GMT
Daniel Parker created CELIX-198:
-----------------------------------

             Summary: Logging can segfault for strings 512 characters or longer
                 Key: CELIX-198
                 URL: https://issues.apache.org/jira/browse/CELIX-198
             Project: Celix
          Issue Type: Bug
            Reporter: Daniel Parker


log_service/public/src/log_helper.c::logHelper_log() uses a buffer of 512 bytes and doesn't
check to make sure that the buffer is long enough to hold the input string.  The buffer should
be increased (or dynamic memory allocation used) and the sizes should be checked to prevent
overrun (perhaps by using vnsprintf() instead of vsprintf() ).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message