Project

General

Profile

Actions

Bug #13652

closed

xargs: writing 1 byte into a region of size 0

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build errors on SPARC with gcc 10:

    xargs.c: In function 'echoargs':
    xargs.c:776:11: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
      776 |  reply[i] = 0;
          |  ~~~~~~~~~^~~
    xargs.c:744:8: note: at offset 2048 to object 'reply' with size 2048 declared here
      744 |  char  reply[LINE_MAX];
          |        ^~~~~
    cc1: all warnings being treated as errors
    *** Error code 1
    dmake: Fatal error: Command failed for target `xargs.o'
    Current working directory /code/illumos-gate/usr/src/cmd/xargs

Testing done: build

Actions

Also available in: Atom PDF