11587 loader.efi: comparison is always true due to limited range of data type

Review Request #2241 - Created Aug. 20, 2019 and submitted

Information
Toomas Soome
illumos-gate
11587
6c4b798...
Reviewers
general
../copy.c: In function 'efi_copyin':
../copy.c:209:14: error: comparison is always true due to limited range of data type [-Werror=type-limits]
  209 |  assert(dest < 0x100000000);
      |              ^
../../../../../include/assert.h:54:21: note: in definition of macro 'assert'
   54 | #define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \
      |                     ^
../copy.c: In function 'efi_copyout':
../copy.c:217:13: error: comparison is always true due to limited range of data type [-Werror=type-limits]
  217 |  assert(src < 0x100000000);
      |             ^
../../../../../include/assert.h:54:21: note: in definition of macro 'assert'
   54 | #define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \
      |                     ^
cc1: all warnings being treated as errors

  

Issues

  • 0
  • 3
  • 1
  • 4
Description From Last Updated
Andrew Stormont
Robert Mustacchi
Toomas Soome
Toomas Soome
Robert Mustacchi
Toomas Soome
Gergő Mihály Doma
Toomas Soome
Toomas Soome
Toomas Soome
Robert Mustacchi
Toomas Soome
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...