public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/30096] New: 'strncpy' output may be truncated
@ 2023-02-07 19:04 kladit@t-online.de
  2023-02-07 19:05 ` [Bug build/30096] " kladit@t-online.de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kladit@t-online.de @ 2023-02-07 19:04 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30096

            Bug ID: 30096
           Summary: 'strncpy' output may be truncated
           Product: glibc
           Version: 2.37
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: kladit@t-online.de
                CC: carlos at redhat dot com
  Target Milestone: ---

New bug

In function 'nis_local_host',
    inlined from 'nis_local_host' at nis_local_names.c:147:1:
nis_local_names.c:171:11: error: 'strncpy' output may be truncated copying
between 0 and 1023 bytes from a string of length 1024
[-Werror=stringop-truncation]
  171 |           strncpy (cp, nis_local_directory (), NIS_MAXNAMELEN - len
-1);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [../o-iterator.mk:9: /sources/glibc/build/nis/nis_local_names.os]
Error 1

GNU C Library (GNU libc) development release version 2.37.9000.
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 11.3.1 20230127.
libc ABIs: UNIQUE IFUNC ABSOLUTE
Minimum supported kernel: 6.01.0

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-31 17:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-07 19:04 [Bug build/30096] New: 'strncpy' output may be truncated kladit@t-online.de
2023-02-07 19:05 ` [Bug build/30096] " kladit@t-online.de
2023-03-14 21:34 ` josimmon at redhat dot com
2023-10-31 17:36 ` carlos at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).