Bug 14794 - libreplace testuite doesn't build with gcc 11.1.1
Summary: libreplace testuite doesn't build with gcc 11.1.1
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.14.4
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-12 12:19 UTC by Andreas Schneider
Modified: 2023-08-22 04:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2021-08-12 12:19:18 UTC
../../lib/replace/tests/testsuite.c:322:13: error: ‘strnlen’ specified bound 20 exceeds source size 10 [-Werror=stringop-overread]                                                           
  322 |         if (strnlen("some text", 20) != 9) {                                                                                                                                         
      |             ^~~~~~~~~~~~~~~~~~~~~~~~

Patch will follow.
Comment 1 Jo Sutton 2023-08-22 04:45:20 UTC
And a patch did follow, as commit 1ce08f72a9e2558e8720b463e68174e430a67654 for Samba 4.16.