Skip to content

Instantly share code, notes, and snippets.

@tiran
Created May 6, 2021 13:46
Show Gist options
  • Save tiran/aec3b48b2f171c70e843568a9a6a3796 to your computer and use it in GitHub Desktop.
Save tiran/aec3b48b2f171c70e843568a9a6a3796 to your computer and use it in GitHub Desktop.
OpenSSL 3.0.0 alpha16+
$ make -s
crypto/ec/curve448/f_generic.c:21:27: warning: argument 1 of type 'uint8_t[56]' {aka 'unsigned char[56]'} with mismatched bound [-Warray-parameter=]
21 | void gf_serialize(uint8_t serial[SER_BYTES], const gf x, int with_hibit)
| ~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from crypto/ec/curve448/f_generic.c:12:
crypto/ec/curve448/field.h:65:28: note: previously declared as 'uint8_t *' {aka 'unsigned char *'}
65 | void gf_serialize(uint8_t *serial, const gf x, int with_highbit);
| ~~~~~~~~~^~~~~~
crypto/ec/curve448/f_generic.c:21:27: warning: argument 1 of type 'uint8_t[56]' {aka 'unsigned char[56]'} with mismatched bound [-Warray-parameter=]
21 | void gf_serialize(uint8_t serial[SER_BYTES], const gf x, int with_hibit)
| ~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from crypto/ec/curve448/f_generic.c:12:
crypto/ec/curve448/field.h:65:28: note: previously declared as 'uint8_t *' {aka 'unsigned char *'}
65 | void gf_serialize(uint8_t *serial, const gf x, int with_highbit);
| ~~~~~~~~~^~~~~~
crypto/ec/curve448/f_generic.c:21:27: warning: argument 1 of type 'uint8_t[56]' {aka 'unsigned char[56]'} with mismatched bound [-Warray-parameter=]
21 | void gf_serialize(uint8_t serial[SER_BYTES], const gf x, int with_hibit)
| ~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from crypto/ec/curve448/f_generic.c:12:
crypto/ec/curve448/field.h:65:28: note: previously declared as 'uint8_t *' {aka 'unsigned char *'}
65 | void gf_serialize(uint8_t *serial, const gf x, int with_highbit);
| ~~~~~~~~~^~~~~~
In file included from test/packettest.c:11:
test/packettest.c: In function 'test_PACKET_buf_init':
test/packettest.c:309:20: warning: 'buf1' may be used uninitialized [-Wmaybe-uninitialized]
309 | if (!TEST_true(PACKET_buf_init(&pkt, buf1, 4))
test/testutil.h:462:66: note: in definition of macro 'TEST_true'
462 | # define TEST_true(a) test_true(__FILE__, __LINE__, #a, (a) != 0)
| ^
In file included from test/packettest.c:10:
include/internal/packet.h:69:31: note: by argument 2 of type 'const unsigned char *' to 'PACKET_buf_init' declared here
69 | __owur static ossl_inline int PACKET_buf_init(PACKET *pkt,
| ^~~~~~~~~~~~~~~
test/packettest.c:305:19: note: 'buf1' declared here
305 | unsigned char buf1[BUF_LEN];
| ^~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment