3v1n0 / libfprint

Library for fingerprint readers
GNU Lesser General Public License v2.1
378 stars 50 forks source link

Fedora 34 T460p #36

Open YQBC2000 opened 2 years ago

YQBC2000 commented 2 years ago

In file included from ../libfprint/nbis/bozorth3/bozorth3.c:82: ../libfprint/nbis/include/bozorth.h:260:42: note: previously declared as ‘int[]’ 260 | extern void bz_comp(int, int [], int [], int [], int , int [][COLS_SIZE_2], | ^~ In function ‘rtp_insert’, inlined from ‘bz_match’ at ../libfprint/nbis/bozorth3/bozorth3.c:558:3: ../libfprint/nbis/bozorth3/bozorth3.c:331:15: error: ‘__builtin_memmove’ offset [-17179869176, -8] is out of the bounds [0, 160000] of object ‘rtp’ with type ‘int [20000]’ [-Werror=array-bounds] 331 | r1-- = r2--; | ~~^~~

alexreinking commented 2 years ago

I get the same issue. Here's a log with a bit more context.

cc -Ilibfprint/libnbis.a.p -Ilibfprint -I../libfprint -I. -I.. -Ilibfprint/nbis/include -I../libfprint/nbis/include -Ilibfprint/nbis/libfprint-include -I../libfprint/nbis/libfprint-include -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gusb-1 -I/usr/include/libusb-1.0 -I/usr/include/pixman-1 -I/usr/include/nss -I/usr/include/nspr -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -O2 -g -Wall -Wcast-align -Wformat-nonliteral -Wformat-security -Wformat=2 -Wignored-qualifiers -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wpointer-arith -Wshadow -Wtype-limits -Wundef -Wunused -Werror=address -Werror=array-bounds -Werror=empty-body -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=redundant-decls -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-strict-aliasing -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -D_GNU_SOURCE '-DG_LOG_DOMAIN="libfprint"' -Wimplicit-function-declaration -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -Werror=implicit -Werror=pointer-to-int-cast -fPIC -pthread -Wno-error=redundant-decls -Wno-redundant-decls -Wno-discarded-qualifiers -MD -MQ libfprint/libnbis.a.p/nbis_bozorth3_bozorth3.c.o -MF libfprint/libnbis.a.p/nbis_bozorth3_bozorth3.c.o.d -o libfprint/libnbis.a.p/nbis_bozorth3_bozorth3.c.o -c ../libfprint/nbis/bozorth3/bozorth3.c
../libfprint/nbis/bozorth3/bozorth3.c:87:13: warning: argument 2 of type ‘int[200]’ with mismatched bound [-Warray-parameter=]
   87 |         int xcol[     MAX_BOZORTH_MINUTIAE ],   /* INPUT: x cordinates */
      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../libfprint/nbis/bozorth3/bozorth3.c:82:
../libfprint/nbis/include/bozorth.h:260:26: note: previously declared as ‘int[]’
  260 | extern void bz_comp(int, int [], int [], int [], int *, int [][COLS_SIZE_2],
      |                          ^~~~~~
../libfprint/nbis/bozorth3/bozorth3.c:88:13: warning: argument 3 of type ‘int[200]’ with mismatched bound [-Warray-parameter=]
   88 |         int ycol[     MAX_BOZORTH_MINUTIAE ],   /* INPUT: y cordinates */
      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../libfprint/nbis/bozorth3/bozorth3.c:82:
../libfprint/nbis/include/bozorth.h:260:34: note: previously declared as ‘int[]’
  260 | extern void bz_comp(int, int [], int [], int [], int *, int [][COLS_SIZE_2],
      |                                  ^~~~~~
../libfprint/nbis/bozorth3/bozorth3.c:89:13: warning: argument 4 of type ‘int[200]’ with mismatched bound [-Warray-parameter=]
   89 |         int thetacol[ MAX_BOZORTH_MINUTIAE ],   /* INPUT: theta values */
      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../libfprint/nbis/bozorth3/bozorth3.c:82:
../libfprint/nbis/include/bozorth.h:260:42: note: previously declared as ‘int[]’
  260 | extern void bz_comp(int, int [], int [], int [], int *, int [][COLS_SIZE_2],
      |                                          ^~~~~~
In function ‘rtp_insert’,
    inlined from ‘bz_match’ at ../libfprint/nbis/bozorth3/bozorth3.c:558:3:
../libfprint/nbis/bozorth3/bozorth3.c:331:15: error: ‘__builtin_memmove’ offset [-17179869176, -8] is out of the bounds [0, 160000] of object ‘rtp’ with type ‘int *[20000]’ [-Werror=array-bounds]
  331 |         *r1-- = *r2--;
      |         ~~~~~~^~~~~~~
../libfprint/nbis/bozorth3/bozorth3.c: In function ‘bz_match’:
../libfprint/nbis/bozorth3/bozorth3.c:375:14: note: ‘rtp’ declared here
  375 | static int * rtp[ ROT_SIZE_1 ];
      |              ^~~
cc1: some warnings being treated as errors
engcarlosperezmolero commented 1 year ago

I'm having the same issue, but I am on Ubuntu 20.04

emf37 commented 1 year ago

I get the same issue too, I'm on openSUSE Tumbleweed with T460P