Page MenuHomePhorge

Fix strlen(null) in DifferentialChangesetViewController loadCoverage()
ClosedPublic

Authored by Sten on Jul 4 2023, 14:19.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 03:53
Unknown Object (File)
Fri, May 10, 00:13
Unknown Object (File)
Fri, May 10, 00:13
Unknown Object (File)
Wed, May 8, 07:58
Unknown Object (File)
Wed, May 8, 07:33
Unknown Object (File)
Fri, May 3, 15:48
Unknown Object (File)
Thu, Apr 25, 16:58
Unknown Object (File)
Thu, Apr 25, 16:58

Details

Summary

DifferentialChangesetViewController loadCoverage() fails under PHP 8.1 when test coverage is provided for some but not all modified files.

Update the code to replace strlen() with phutil_nonempty_string().

Fixes T15521

Test Plan

View a diff with test coverage for some but not all files.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable