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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dcb314 at hotmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 03:00:02 2026 UTC