Project

General

Profile

Actions

Bug #16551

open

vmm: array subscript 4 is above array bounds

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:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Build error with gcc 13:

    In function 'vmm_gpt_lvl_len',
        inlined from 'vmm_gpt_populate_region_lvl' at ../../intel/io/vmm/vmm_gpt.c:498:24:
    ../../intel/io/vmm/vmm_gpt.c:239:24: error: array subscript 4 is above array bounds of 'const uint64_t[4]' {aka 'const long unsigned int[4]'} [-Werror=array-bounds=]
      239 |         return (gpa_len[level]);
          |                ~~~~~~~~^~~~~~~~
    ../../intel/io/vmm/vmm_gpt.c: In function 'vmm_gpt_populate_region_lvl':
    ../../intel/io/vmm/vmm_gpt.c:233:24: note: while referencing 'gpa_len'
      233 |         const uint64_t gpa_len[] = {
          |                        ^~~~~~~
    cc1: all warnings being treated as errors
    *** Error code 1
    dmake: Warning: Command failed for target `debug64/vmm_gpt.o'
    Current working directory /code/illumos-gate/usr/src/uts/i86pc/vmm

Actions #1

Updated by Electric Monk 16 days ago

  • Gerrit CR set to 3473
Actions

Also available in: Atom PDF