php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79936 sapi/litespeed/lsapilib.c:2627: possible unterminated string
Submitted: 2020-08-06 09:58 UTC Modified: 2020-08-10 23:16 UTC
From: dcb314 at hotmail dot com Assigned: gwang (profile)
Status: Closed Package: *General Issues
PHP Version: 7.4.9RC1 OS: fedora linux
Private report: No CVE-ID: None
 [2020-08-06 09:58 UTC] dcb314 at hotmail dot com
Description:
------------
 php-7.4.9/sapi/litespeed/lsapilib.c:2627:5: warning:inconclusive: The buffer 'achAddr' may not be null-terminated after the call to strncpy(). [terminateStrncpy]

Source code is

   strncpy( achAddr, pBind, 256 );


Suggest make sure achAddr is properly terminated with a zero byte.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-08-06 10:10 UTC] cmb@php.net
-Assigned To: +Assigned To: gwang
 [2020-08-10 23:16 UTC] gwang@php.net
-Status: Assigned +Status: Closed
 [2020-08-10 23:16 UTC] gwang@php.net
The fix for this bug has been committed.
If you are still experiencing this bug, try to check out latest source from https://github.com/php/php-src and re-test.
Thank you for the report, and for helping us make PHP better.

https://github.com/php/php-src/commit/07cb2755bec2fe4671b35defc9e76f495ce6e9d1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 10:01:31 2024 UTC