Project

General

Profile

Actions

Bug #13652

closed

xargs: writing 1 byte into a region of size 0

Added by Toomas Soome about 1 year ago. Updated about 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 #1

Updated by Electric Monk about 1 year ago

  • Gerrit CR set to 1356
Actions #2

Updated by Electric Monk about 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit d4d62540c939a1f768b551ce50297d66799bd53e

commit  d4d62540c939a1f768b551ce50297d66799bd53e
Author: Toomas Soome <tsoome@me.com>
Date:   2021-03-26T15:59:09.000Z

    13652 xargs: writing 1 byte into a region of size 0
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Andy Fiddaman <andy@omnios.org>
    Approved by: Robert Mustacchi <rm@fingolfin.org>

Actions

Also available in: Atom PDF