Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 34 T460p #36

Open
YQBC2000 opened this issue Jan 3, 2022 · 3 comments
Open

Fedora 34 T460p #36

YQBC2000 opened this issue Jan 3, 2022 · 3 comments

Comments

@YQBC2000
Copy link

YQBC2000 commented Jan 3, 2022

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
Copy link

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
Copy link

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

@emf37
Copy link

emf37 commented Apr 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants