Project

General

Profile

Actions

Bug #16550

open

vmm: writing 1 byte into a region of size 0

Added by Toomas Soome 16 days ago. Updated 16 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

90%

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

Description

Build error with gcc 13:

    ../../intel/io/vmm/io/vrtc.c: In function 'vrtc_write':
    ../../intel/io/vmm/io/vrtc.c:1177:33: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
     1177 |                 rtc_raw[offset] = val;
          |                 ~~~~~~~~~~~~~~~~^~~~~
    ../../intel/io/vmm/io/vrtc.c:123:25: note: at offset 128 into destination object 'rtcdev' of size 128
      123 |         struct rtcdev   rtcdev;
          |                         ^~~~~~
    cc1: all warnings being treated as errors
    *** Error code 1
    dmake: Warning: Command failed for target `debug64/vrtc.o'
    Current working directory /code/illumos-gate/usr/src/uts/i86pc/vmm

The problem there is that ASSERT/VERIFY does not really convince compiler. Actually, I do not think we should rely on debug kernel on catching bad values either....

Actions #1

Updated by Electric Monk 16 days ago

  • Gerrit CR set to 3472
Actions

Also available in: Atom PDF