Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
BIND
BIND
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 627
    • Issues 627
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 116
    • Merge Requests 116
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • BINDBIND
  • Issues
  • #2452

Closed
Open
Created Jan 29, 2021 by Michal Nowak@mnowakMaintainer

iterated_hash.c: warning: argument 1 of type ‘unsigned char[20]’ with mismatched bound

On Fedora 33 with custom experimental gcc snapshot version 11.0.0 20210124 I get the following warning:

/opt/gcc-latest/bin/gcc  -I/home/newman/isc/ws/bind9 -I../.. -I./unix/include -I./pthreads/include -I./x86_32/include -I./include -I./include -I/home/newman/isc/ws/bind9/lib/dns/include -I../../lib/dns/include   -D_REENTRANT -DOPENSSL -DPK11_LIB_LOCATION=\"undefined\" -D_GNU_SOURCE -fno-omit-frame-pointer -fno-optimize-sibling-calls -O1 -g -Wall -Wextra -fsanitize=address,undefined -DISC_MEM_USE_INTERNAL_MALLOC=0  -I/usr/include/libxml2    -fPIC  -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks  -c iterated_hash.c
iterated_hash.c:21:33: warning: argument 1 of type ‘unsigned char[20]’ with mismatched bound [-Warray-parameter=]
   21 | isc_iterated_hash(unsigned char out[ISC_SHA1_DIGESTLENGTH],
      |                   ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from iterated_hash.c:18:
./include/isc/iterated_hash.h:33:37: note: previously declared as ‘unsigned char[155]’
   33 | int isc_iterated_hash(unsigned char out[NSEC3_MAX_HASH_LENGTH],
      |                       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Assignee
Assign to
May 2021 (9.11.31, 9.11.31-S1, 9.16.15, 9.16.15-S1, 9.17.13)
Milestone
May 2021 (9.11.31, 9.11.31-S1, 9.16.15, 9.16.15-S1, 9.17.13)
Assign milestone
Time tracking
None
Due date
None