Diff of the two buildlogs: -- --- b1/build.log 2021-12-29 19:16:51.492667461 +0000 +++ b2/build.log 2021-12-29 19:21:49.227384126 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Dec 29 07:03:24 -12 2021 -I: pbuilder-time-stamp: 1640804604 +I: Current time: Wed Feb 1 15:39:54 +14 2023 +I: pbuilder-time-stamp: 1675215594 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./lsh-utils_2.1-13.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.vR7Xgr46/trustedkeys.kbx': General error -gpgv: Signature made Wed Jan 6 10:32:58 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.60FfjDcB/trustedkeys.kbx': General error +gpgv: Signature made Thu Jan 7 12:32:58 2021 +14 gpgv: using RSA key CD2A073B386154170A4082E8D4F219BFEC998489 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./lsh-utils_2.1-13.dsc @@ -38,135 +38,169 @@ dpkg-source: info: applying missing_extern.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/4013720/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/922719/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/922719/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/922719/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=15' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=16' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='d088913dd154413c98d9a9b97122a2c7' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='4013720' - PS1='# ' - PS2='> ' + INVOCATION_ID=522026660adc41b7a173d5f8344dbef3 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=922719 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.m9ZKJR9h0G/pbuilderrc_Uz1V --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.m9ZKJR9h0G/b1 --logfile b1/build.log lsh-utils_2.1-13.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://78.137.99.97:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.m9ZKJR9h0G/pbuilderrc_7xJj --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.m9ZKJR9h0G/b2 --logfile b2/build.log lsh-utils_2.1-13.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://85.184.249.68:3128 I: uname -a - Linux ionos1-amd64 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.14.0-0.bpo.2-amd64 #1 SMP Debian 5.14.9-2~bpo11+1 (2021-10-10) x86_64 GNU/Linux I: ls -l /bin total 5476 - -rwxr-xr-x 1 root root 1234376 Aug 4 08:25 bash - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 18424 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 43936 Sep 23 2020 cat - -rwxr-xr-x 1 root root 72672 Sep 23 2020 chgrp - -rwxr-xr-x 1 root root 64448 Sep 23 2020 chmod - -rwxr-xr-x 1 root root 72672 Sep 23 2020 chown - -rwxr-xr-x 1 root root 151168 Sep 23 2020 cp - -rwxr-xr-x 1 root root 125560 Dec 10 2020 dash - -rwxr-xr-x 1 root root 113664 Sep 23 2020 date - -rwxr-xr-x 1 root root 80968 Sep 23 2020 dd - -rwxr-xr-x 1 root root 93936 Sep 23 2020 df - -rwxr-xr-x 1 root root 147176 Sep 23 2020 dir - -rwxr-xr-x 1 root root 84440 Jul 28 07:09 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 39712 Sep 23 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 39680 Sep 23 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 69032 Jul 28 07:09 findmnt - -rwsr-xr-x 1 root root 34896 Feb 26 2021 fusermount - -rwxr-xr-x 1 root root 203072 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 2021 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 2021 gzexe - -rwxr-xr-x 1 root root 98048 Mar 2 2021 gzip - -rwxr-xr-x 1 root root 22600 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 72840 Sep 23 2020 ln - -rwxr-xr-x 1 root root 56952 Feb 7 2020 login - -rwxr-xr-x 1 root root 147176 Sep 23 2020 ls - -rwxr-xr-x 1 root root 149736 Jul 28 07:09 lsblk - -rwxr-xr-x 1 root root 85184 Sep 23 2020 mkdir - -rwxr-xr-x 1 root root 76896 Sep 23 2020 mknod - -rwxr-xr-x 1 root root 48064 Sep 23 2020 mktemp - -rwxr-xr-x 1 root root 59632 Jul 28 07:09 more - -rwsr-xr-x 1 root root 55528 Jul 28 07:09 mount - -rwxr-xr-x 1 root root 18664 Jul 28 07:09 mountpoint - -rwxr-xr-x 1 root root 147080 Sep 23 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 2021 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43872 Sep 23 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 08:25 rbash -> bash - -rwxr-xr-x 1 root root 52032 Sep 23 2020 readlink - -rwxr-xr-x 1 root root 72704 Sep 23 2020 rm - -rwxr-xr-x 1 root root 52032 Sep 23 2020 rmdir - -rwxr-xr-x 1 root root 27472 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Dec 20 21:25 sh -> dash - -rwxr-xr-x 1 root root 43808 Sep 23 2020 sleep - -rwxr-xr-x 1 root root 84928 Sep 23 2020 stty - -rwsr-xr-x 1 root root 71912 Jul 28 07:09 su - -rwxr-xr-x 1 root root 39744 Sep 23 2020 sync - -rwxr-xr-x 1 root root 531928 Feb 16 2021 tar - -rwxr-xr-x 1 root root 14456 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 101408 Sep 23 2020 touch - -rwxr-xr-x 1 root root 39680 Sep 23 2020 true - -rwxr-xr-x 1 root root 14328 Feb 26 2021 ulockmgr_server - -rwsr-xr-x 1 root root 35040 Jul 28 07:09 umount - -rwxr-xr-x 1 root root 39744 Sep 23 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 2021 uncompress - -rwxr-xr-x 1 root root 147176 Sep 23 2020 vdir - -rwxr-xr-x 1 root root 63744 Jul 28 07:09 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 2021 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 2021 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 2021 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 2021 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 2021 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 2021 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 2021 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 2021 zless - -rwxr-xr-x 1 root root 1842 Mar 2 2021 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 2021 znew -I: user script /srv/workspace/pbuilder/4013720/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1234376 Aug 5 2021 bash + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 18424 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 43936 Sep 24 2020 cat + -rwxr-xr-x 1 root root 72672 Sep 24 2020 chgrp + -rwxr-xr-x 1 root root 64448 Sep 24 2020 chmod + -rwxr-xr-x 1 root root 72672 Sep 24 2020 chown + -rwxr-xr-x 1 root root 151168 Sep 24 2020 cp + -rwxr-xr-x 1 root root 125560 Dec 11 2020 dash + -rwxr-xr-x 1 root root 113664 Sep 24 2020 date + -rwxr-xr-x 1 root root 80968 Sep 24 2020 dd + -rwxr-xr-x 1 root root 93936 Sep 24 2020 df + -rwxr-xr-x 1 root root 147176 Sep 24 2020 dir + -rwxr-xr-x 1 root root 84440 Jul 29 2021 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 39712 Sep 24 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 39680 Sep 24 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 69032 Jul 29 2021 findmnt + -rwsr-xr-x 1 root root 34896 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 203072 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe + -rwxr-xr-x 1 root root 98048 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 22600 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 72840 Sep 24 2020 ln + -rwxr-xr-x 1 root root 56952 Feb 8 2020 login + -rwxr-xr-x 1 root root 147176 Sep 24 2020 ls + -rwxr-xr-x 1 root root 149736 Jul 29 2021 lsblk + -rwxr-xr-x 1 root root 85184 Sep 24 2020 mkdir + -rwxr-xr-x 1 root root 76896 Sep 24 2020 mknod + -rwxr-xr-x 1 root root 48064 Sep 24 2020 mktemp + -rwxr-xr-x 1 root root 59632 Jul 29 2021 more + -rwsr-xr-x 1 root root 55528 Jul 29 2021 mount + -rwxr-xr-x 1 root root 18664 Jul 29 2021 mountpoint + -rwxr-xr-x 1 root root 147080 Sep 24 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 2021 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 43872 Sep 24 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 2021 rbash -> bash + -rwxr-xr-x 1 root root 52032 Sep 24 2020 readlink + -rwxr-xr-x 1 root root 72704 Sep 24 2020 rm + -rwxr-xr-x 1 root root 52032 Sep 24 2020 rmdir + -rwxr-xr-x 1 root root 27472 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Feb 1 15:40 sh -> bash + lrwxrwxrwx 1 root root 4 Jan 24 05:47 sh.distrib -> dash + -rwxr-xr-x 1 root root 43808 Sep 24 2020 sleep + -rwxr-xr-x 1 root root 84928 Sep 24 2020 stty + -rwsr-xr-x 1 root root 71912 Jul 29 2021 su + -rwxr-xr-x 1 root root 39744 Sep 24 2020 sync + -rwxr-xr-x 1 root root 531928 Feb 17 2021 tar + -rwxr-xr-x 1 root root 14456 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 101408 Sep 24 2020 touch + -rwxr-xr-x 1 root root 39680 Sep 24 2020 true + -rwxr-xr-x 1 root root 14328 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 35040 Jul 29 2021 umount + -rwxr-xr-x 1 root root 39744 Sep 24 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 147176 Sep 24 2020 vdir + -rwxr-xr-x 1 root root 63744 Jul 29 2021 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless + -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew +I: user script /srv/workspace/pbuilder/922719/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -298,7 +332,7 @@ Get: 63 http://deb.debian.org/debian bullseye/main amd64 nettle-dev amd64 3.7.3-1 [1263 kB] Get: 64 http://deb.debian.org/debian bullseye/main amd64 texinfo amd64 6.7.0.dfsg.2-6 [1761 kB] Get: 65 http://deb.debian.org/debian bullseye/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2 [190 kB] -Fetched 25.6 MB in 1s (20.7 MB/s) +Fetched 25.6 MB in 0s (80.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19655 files and directories currently installed.) @@ -589,7 +623,8 @@ fakeroot is already the newest version (1.25.3-1.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/lsh-utils-2.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../lsh-utils_2.1-13_source.changes +hostname: Name or service not known +I: Running cd /build/lsh-utils-2.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../lsh-utils_2.1-13_source.changes dpkg-buildpackage: info: source package lsh-utils dpkg-buildpackage: info: source version 2.1-13 dpkg-buildpackage: info: source distribution unstable @@ -881,7 +916,7 @@ config.status: creating config.h config.status: executing depfiles commands === configuring in src/spki (/build/lsh-utils-2.1/src/spki) -configure: running /bin/bash /build/lsh-utils-2.1/src/spki/configure --disable-option-checking '--prefix=/usr' '--build=x86_64-linux-gnu' '--disable-dependency-tracking' '--enable-pam' '--enable-kerberos' '--enable-srp' '--with-pty' '--enable-tcp-forward' '--enable-x11-forward' '--enable-agent-forward' '--enable-ipv6' '--enable-utmp' '--with-zlib' '--with-tcpwrappers' '--with-sshd1=/usr/sbin/sshd' '--with-x' 'XAUTH_PROGRAM=/usr/bin/xauth' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'DFLAGS=-frelease' 'FCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'FFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'GCJFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'LDFLAGS=-Wl,-z,defs -Wl,--as-needed -Wl,-z,relro' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'OBJCXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu' --cache-file=/dev/null --srcdir=/build/lsh-utils-2.1/src/spki +configure: running /bin/sh /build/lsh-utils-2.1/src/spki/configure --disable-option-checking '--prefix=/usr' '--build=x86_64-linux-gnu' '--disable-dependency-tracking' '--enable-pam' '--enable-kerberos' '--enable-srp' '--with-pty' '--enable-tcp-forward' '--enable-x11-forward' '--enable-agent-forward' '--enable-ipv6' '--enable-utmp' '--with-zlib' '--with-tcpwrappers' '--with-sshd1=/usr/sbin/sshd' '--with-x' 'XAUTH_PROGRAM=/usr/bin/xauth' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'DFLAGS=-frelease' 'FCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'FFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'GCJFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'LDFLAGS=-Wl,-z,defs -Wl,--as-needed -Wl,-z,relro' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'OBJCXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu' --cache-file=/dev/null --srcdir=/build/lsh-utils-2.1/src/spki checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p @@ -951,7 +986,7 @@ config.status: creating config.h config.status: executing depfiles commands === configuring in src/sftp (/build/lsh-utils-2.1/src/sftp) -configure: running /bin/bash /build/lsh-utils-2.1/src/sftp/configure --disable-option-checking '--prefix=/usr' '--build=x86_64-linux-gnu' '--disable-dependency-tracking' '--enable-pam' '--enable-kerberos' '--enable-srp' '--with-pty' '--enable-tcp-forward' '--enable-x11-forward' '--enable-agent-forward' '--enable-ipv6' '--enable-utmp' '--with-zlib' '--with-tcpwrappers' '--with-sshd1=/usr/sbin/sshd' '--with-x' 'XAUTH_PROGRAM=/usr/bin/xauth' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'DFLAGS=-frelease' 'FCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'FFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'GCJFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'LDFLAGS=-Wl,-z,defs -Wl,--as-needed -Wl,-z,relro' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'OBJCXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu' --cache-file=/dev/null --srcdir=/build/lsh-utils-2.1/src/sftp +configure: running /bin/sh /build/lsh-utils-2.1/src/sftp/configure --disable-option-checking '--prefix=/usr' '--build=x86_64-linux-gnu' '--disable-dependency-tracking' '--enable-pam' '--enable-kerberos' '--enable-srp' '--with-pty' '--enable-tcp-forward' '--enable-x11-forward' '--enable-agent-forward' '--enable-ipv6' '--enable-utmp' '--with-zlib' '--with-tcpwrappers' '--with-sshd1=/usr/sbin/sshd' '--with-x' 'XAUTH_PROGRAM=/usr/bin/xauth' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'DFLAGS=-frelease' 'FCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'FFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'GCJFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'LDFLAGS=-Wl,-z,defs -Wl,--as-needed -Wl,-z,relro' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'OBJCXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu' --cache-file=/dev/null --srcdir=/build/lsh-utils-2.1/src/sftp checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p @@ -1095,7 +1130,7 @@ config.status: executing depfiles commands dh_testdir # Add here commands to compile the package. -/usr/bin/make -j15 MAKEINFO='makeinfo --enable-encoding' +/usr/bin/make -j16 MAKEINFO='makeinfo --enable-encoding' make[1]: Entering directory '/build/lsh-utils-2.1' /usr/bin/make all-recursive make[2]: Entering directory '/build/lsh-utils-2.1' @@ -1172,15 +1207,12 @@ gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o xmalloc.o xmalloc.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o werror.o werror.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o sftp-test-client.o sftp-test-client.c -misc_fun.c: In function 'mgetenv_init': -misc_fun.c:61:27: warning: unused parameter 'envp' [-Wunused-parameter] - 61 | void mgetenv_init( char** envp ) - | ~~~~~~~^~~~ -misc_fun.c: In function 'massage_fname': -misc_fun.c:68:38: warning: unused parameter 'local' [-Wunused-parameter] - 68 | char* massage_fname(char* fname, int local) - | ~~~~^~~~~ +gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o client.o client.c +io_input.c: In function 'sftp_read_packet': buffer.c: In function 'sftp_put_printf': +io_input.c:149:20: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] + 149 | while (bytesread < sizeof(buf)) + | ^ buffer.c:149:26: warning: pointer targets in passing argument 1 of 'vsnprintf' differ in signedness [-Wpointer-sign] 149 | length = vsnprintf(current, needed, format, args); | ^~~~~~~ @@ -1193,12 +1225,65 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:77:1: note: expected 'char * restrict' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 77 | __NTH (vsnprintf (char *__restrict __s, size_t __n, | ^~~~~ +buffer.c: In function 'sftp_put_strftime': +buffer.c:175:25: warning: pointer targets in passing argument 1 of 'strftime' differ in signedness [-Wpointer-sign] + 175 | length = strftime(current, needed, format, tm); + | ^~~~~~~ + | | + | uint8_t * {aka unsigned char *} +In file included from buffer.h:36, + from buffer.c:38: +/usr/include/time.h:88:42: note: expected 'char * restrict' but argument is of type 'uint8_t *' {aka 'unsigned char *'} + 88 | extern size_t strftime (char *__restrict __s, size_t __maxsize, + | ~~~~~~~~~~~~~~~~~^~~ +io_output.c: In function 'sftp_write_packet': +io_output.c:196:17: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] + 196 | while (writteni) + | ^ +misc_fun.c: In function 'mgetenv_init': +misc_fun.c:61:27: warning: unused parameter 'envp' [-Wunused-parameter] + 61 | void mgetenv_init( char** envp ) + | ~~~~~~~^~~~ +misc_fun.c: In function 'massage_fname': +misc_fun.c:68:38: warning: unused parameter 'local' [-Wunused-parameter] + 68 | char* massage_fname(char* fname, int local) + | ~~~~^~~~~ +commands.c: In function 'com_lcd': +commands.c:1868:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable] + 1868 | int ret; + | ^~~ +commands.c: In function 'handle_command': +commands.c:2144:29: warning: pointer targets in initialization of 'const char *' from 'const unsigned char *' differ in signedness [-Wpointer-sign] + 2144 | const char *entered_cmd = s; + | ^ +commands.c:2149:20: warning: pointer targets in passing argument 1 of 'lsftp_s_skip' differ in signedness [-Wpointer-sign] + 2149 | s = lsftp_s_skip(s," \n\t\r"); /* Skip any initial whitespace */ + | ^ + | | + | const unsigned char * +In file included from sftp_bind.h:63, + from commands.h:41, + from commands.c:31: +str_utils.h:42:38: note: expected 'const char *' but argument is of type 'const unsigned char *' + 42 | const char *lsftp_s_skip(const char *s, const char *sep); + | ~~~~~~~~~~~~^ +commands.c:2149:5: warning: pointer targets in assignment from 'const char *' to 'const unsigned char *' differ in signedness [-Wpointer-sign] + 2149 | s = lsftp_s_skip(s," \n\t\r"); /* Skip any initial whitespace */ + | ^ sftp_c.c: In function 'sftp_get_file_init': sftp_c.c:960:23: warning: pointer targets in passing argument 1 of 'stat' differ in signedness [-Wpointer-sign] 960 | statret = stat( fname, &st ); | ^~~~~ | | | const uint8_t * {aka const unsigned char *} +commands.c:2158:25: warning: pointer targets in passing argument 1 of 'com_escape' differ in signedness [-Wpointer-sign] + 2158 | return com_escape( s+1, entered_cmd ); + | ~^~ + | | + | const unsigned char * +commands.c:352:24: note: expected 'const char *' but argument is of type 'const unsigned char *' + 352 | com_escape(const char *arg, const char *command UNUSED) + | ~~~~~~~~~~~~^~~ In file included from /usr/include/features.h:461, from /usr/include/alloca.h:21, from config.h:299, @@ -1217,28 +1302,42 @@ /usr/include/x86_64-linux-gnu/bits/fcntl2.h:41:19: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 41 | open (const char *__path, int __oflag, ...) | ~~~~~~~~~~~~^~~~~~ +commands.c:2161:27: warning: pointer targets in passing argument 1 of 'com_longhelp' differ in signedness [-Wpointer-sign] + 2161 | return com_longhelp( s+1, entered_cmd ); + | ~^~ + | | + | const unsigned char * +commands.c:244:26: note: expected 'const char *' but argument is of type 'const unsigned char *' + 244 | com_longhelp(const char *arg, const char *command UNUSED) + | ~~~~~~~~~~~~^~~ sftp_c.c:938:15: warning: unused parameter 'fnamelen' [-Wunused-parameter] 938 | uint32_t fnamelen, | ~~~~~~~~~^~~~~~~~ -sftp_bind.c: In function 'lsftp_open_connection': -sftp_bind.c:210:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] - 210 | cur_string = - | ^~~~~~~~~~ -sftp_bind.c:234:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] - 234 | cur_string = - | ^~~~~~~~~~ -buffer.c: In function 'sftp_put_strftime': -buffer.c:175:25: warning: pointer targets in passing argument 1 of 'strftime' differ in signedness [-Wpointer-sign] - 175 | length = strftime(current, needed, format, tm); - | ^~~~~~~ - | | - | uint8_t * {aka unsigned char *} -In file included from buffer.h:36, - from buffer.c:38: -/usr/include/time.h:88:42: note: expected 'char * restrict' but argument is of type 'uint8_t *' {aka 'unsigned char *'} - 88 | extern size_t strftime (char *__restrict __s, size_t __maxsize, - | ~~~~~~~~~~~~~~~~~^~~ -sftp_bind.c: In function 'lsftp_callback': +commands.c:2165:22: warning: pointer targets in passing argument 1 of 'lsftp_s_strtok' differ in signedness [-Wpointer-sign] + 2165 | s = lsftp_s_strtok(s," \n\t\r", &tmp ); + | ^ + | | + | const unsigned char * +In file included from sftp_bind.h:63, + from commands.h:41, + from commands.c:31: +str_utils.h:39:40: note: expected 'const char *' but argument is of type 'const unsigned char *' + 39 | const char *lsftp_s_strtok(const char *s, const char* tok, + | ~~~~~~~~~~~~^ +commands.c:2165:5: warning: pointer targets in assignment from 'const char *' to 'const unsigned char *' differ in signedness [-Wpointer-sign] + 2165 | s = lsftp_s_strtok(s," \n\t\r", &tmp ); + | ^ +commands.c:2184:22: warning: pointer targets in passing argument 1 of 'lsftp_s_skip' differ in signedness [-Wpointer-sign] + 2184 | lsftp_s_skip(s," \n\t\r"), + | ^ + | | + | const unsigned char * +In file included from sftp_bind.h:63, + from commands.h:41, + from commands.c:31: +str_utils.h:42:38: note: expected 'const char *' but argument is of type 'const unsigned char *' + 42 | const char *lsftp_s_skip(const char *s, const char *sep); + | ~~~~~~~~~~~~^ sftp_c.c: In function 'sftp_put_file_init': sftp_c.c:1262:15: warning: pointer targets in passing argument 1 of 'open' differ in signedness [-Wpointer-sign] 1262 | ret = open( fname, O_RDONLY ); @@ -1254,10 +1353,38 @@ sftp_c.c:1239:15: warning: unused parameter 'fnamelen' [-Wunused-parameter] 1239 | uint32_t fnamelen, | ~~~~~~~~~^~~~~~~~ -io_input.c: In function 'sftp_read_packet': -io_input.c:149:20: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] - 149 | while (bytesread < sizeof(buf)) - | ^ +sftp_bind.c: In function 'lsftp_open_connection': +sftp_bind.c:210:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] + 210 | cur_string = + | ^~~~~~~~~~ +sftp_bind.c:234:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] + 234 | cur_string = + | ^~~~~~~~~~ +In file included from /usr/include/string.h:495, + from misc_fun.h:33, + from misc_fun.c:32: +In function 'strncpy', + inlined from 'lsftp_concat' at misc_fun.c:102:3: +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +misc_fun.c: In function 'lsftp_concat': +misc_fun.c:94:8: note: length computed here + 94 | i1 = strlen( s1 ); + | ^~~~~~~~~~~~ +In file included from /usr/include/string.h:495, + from misc_fun.h:33, + from misc_fun.c:32: +In function 'strncpy', + inlined from 'lsftp_concat' at misc_fun.c:103:3: +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +misc_fun.c: In function 'lsftp_concat': +misc_fun.c:95:8: note: length computed here + 95 | i2 = strlen( s2 ); + | ^~~~~~~~~~~~ +sftp_bind.c: In function 'lsftp_callback': sftp_bind.c:581:7: warning: variable 'retval' set but not used [-Wunused-but-set-variable] 581 | int retval; | ^~~~~~ @@ -1282,6 +1409,49 @@ sftp_c.h:282:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 282 | const uint8_t *fname, | ~~~~~~~~~~~~~~~^~~~~ +client.c: In function 'sftp_open': +client.c:110:41: warning: pointer targets in passing argument 3 of 'sftp_put_string' differ in signedness [-Wpointer-sign] + 110 | sftp_put_string(ctx->o, strlen(name), name ); + | ^~~~ + | | + | const char * +In file included from client.h:29, + from client.c:32: +buffer.h:108:72: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' + 108 | sftp_put_string(struct sftp_output *o, uint32_t length, const uint8_t *data); + | ~~~~~~~~~~~~~~~^~~~ +sftp_bind.c: In function 'lsftp_do_put': +sftp_bind.c:1390:5: warning: pointer targets in passing argument 5 of 'sftp_put_file_init' differ in signedness [-Wpointer-sign] + 1390 | tmp, strlen( tmp ), + | ^~~ + | | + | const char * +In file included from sftp_bind.h:61, + from sftp_bind.c:34: +sftp_c.h:320:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' + 320 | const uint8_t *name, + | ~~~~~~~~~~~~~~~^~~~ +sftp_bind.c:1391:5: warning: pointer targets in passing argument 7 of 'sftp_put_file_init' differ in signedness [-Wpointer-sign] + 1391 | local, strlen( local), + | ^~~~~ + | | + | const char * +In file included from sftp_bind.h:61, + from sftp_bind.c:34: +sftp_c.h:322:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' + 322 | const uint8_t *fname, + | ~~~~~~~~~~~~~~~^~~~~ +sftp_bind.c: In function 'lsftp_do_ls': +sftp_bind.c:1529:10: warning: pointer targets in passing argument 5 of 'sftp_ls_init' differ in signedness [-Wpointer-sign] + 1529 | tmp, + | ^~~ + | | + | const char * +In file included from sftp_bind.h:61, + from sftp_bind.c:34: +sftp_c.h:403:22: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' + 403 | const uint8_t *dir, + | ~~~~~~~~~~~~~~~^~~ rl.c: In function 'lsftp_rl_completion': rl.c:222:11: warning: passing argument 2 of 'rl_completion_matches' from incompatible pointer type [-Wincompatible-pointer-types] 222 | lsftp_rl_command_generator @@ -1305,71 +1475,6 @@ /usr/include/readline/readline.h:485:37: note: expected 'char * (*)(const char *, int)' but argument is of type 'char * (*)(char *, int)' 485 | extern char **rl_completion_matches PARAMS((const char *, rl_compentry_func_t *)); | ^~~~~~ -lsftp.c: In function 'lsftp_interactive_mainloop': -lsftp.c:142:23: warning: pointer targets in passing argument 1 of 'handle_command' differ in signedness [-Wpointer-sign] - 142 | handle_command( current_line ); - | ^~~~~~~~~~~~ - | | - | char * -In file included from rl.h:33, - from lsftp.h:36, - from lsftp.c:31: -commands.h:58:41: note: expected 'const unsigned char *' but argument is of type 'char *' - 58 | int handle_command(const unsigned char *s); - | ~~~~~~~~~~~~~~~~~~~~~^ -lsftp.c:78:11: warning: variable 'retval' set but not used [-Wunused-but-set-variable] - 78 | int retval; - | ^~~~~~ -lsftp.c: In function 'lsftp_noninteractive_mainloop': -lsftp.c:167:22: warning: pointer targets in passing argument 1 of 'handle_command' differ in signedness [-Wpointer-sign] - 167 | handle_command( argv[startat++] ); /* Do it */ - | ~~~~^~~~~~~~~~~ - | | - | char * -In file included from rl.h:33, - from lsftp.h:36, - from lsftp.c:31: -commands.h:58:41: note: expected 'const unsigned char *' but argument is of type 'char *' - 58 | int handle_command(const unsigned char *s); - | ~~~~~~~~~~~~~~~~~~~~~^ -lsftp.c: In function 'main': -lsftp.c:181:17: warning: passing argument 1 of 'do_gnu_stuff' from incompatible pointer type [-Wincompatible-pointer-types] - 181 | do_gnu_stuff( argv ); /* Check for GNU thingies and act accordingly */ - | ^~~~ - | | - | char ** -In file included from commands.h:45, - from rl.h:33, - from lsftp.h:36, - from lsftp.c:31: -gnu_stuff.h:35:33: note: expected 'const char **' but argument is of type 'char **' - 35 | void do_gnu_stuff( const char** argv ); - | ~~~~~~~~~~~~~^~~~ -sftp_bind.c: In function 'lsftp_do_put': -sftp_bind.c:1390:5: warning: pointer targets in passing argument 5 of 'sftp_put_file_init' differ in signedness [-Wpointer-sign] - 1390 | tmp, strlen( tmp ), - | ^~~ - | | - | const char * -io_output.c: In function 'sftp_write_packet': -io_output.c:196:17: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] - 196 | while (writteni) - | ^ -In file included from sftp_bind.h:61, - from sftp_bind.c:34: -sftp_c.h:320:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' - 320 | const uint8_t *name, - | ~~~~~~~~~~~~~~~^~~~ -sftp_bind.c:1391:5: warning: pointer targets in passing argument 7 of 'sftp_put_file_init' differ in signedness [-Wpointer-sign] - 1391 | local, strlen( local), - | ^~~~~ - | | - | const char * -In file included from sftp_bind.h:61, - from sftp_bind.c:34: -sftp_c.h:322:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' - 322 | const uint8_t *fname, - | ~~~~~~~~~~~~~~~^~~~~ rl.c:252:7: warning: passing argument 2 of 'rl_completion_matches' from incompatible pointer type [-Wincompatible-pointer-types] 252 | lsftp_rl_remotefile_generator | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1406,25 +1511,6 @@ rl.c:205:55: warning: unused parameter 'end' [-Wunused-parameter] 205 | char** lsftp_rl_completion(char* text, int start, int end) | ~~~~^~~ -rl.c: In function 'lsftp_rl_no_generator': -rl.c:457:36: warning: unused parameter 'text' [-Wunused-parameter] - 457 | char* lsftp_rl_no_generator (char* text, int state) - | ~~~~~~^~~~ -rl.c: In function 'lsftp_rl_history_fname': -rl.c:522:9: warning: unused variable 'username' [-Wunused-variable] - 522 | char* username; - | ^~~~~~~~ -sftp_bind.c: In function 'lsftp_do_ls': -sftp_bind.c:1529:10: warning: pointer targets in passing argument 5 of 'sftp_ls_init' differ in signedness [-Wpointer-sign] - 1529 | tmp, - | ^~~ - | | - | const char * -In file included from sftp_bind.h:61, - from sftp_bind.c:34: -sftp_c.h:403:22: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' - 403 | const uint8_t *dir, - | ~~~~~~~~~~~~~~~^~~ sftp_bind.c: In function 'lsftp_handle_ls': sftp_bind.c:1690:46: warning: pointer targets in passing argument 2 of 'lsftp_concat' differ in signedness [-Wpointer-sign] 1690 | prefixed_fname = lsftp_concat( prefix, fname ); @@ -1436,20 +1522,24 @@ misc_fun.h:40:49: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 40 | char* lsftp_concat( const char* s1, const char* s2 ); | ~~~~~~~~~~~~^~ +rl.c: In function 'lsftp_rl_no_generator': +rl.c:457:36: warning: unused parameter 'text' [-Wunused-parameter] + 457 | char* lsftp_rl_no_generator (char* text, int state) + | ~~~~~~^~~~ sftp_bind.c:1742:7: warning: pointer targets in passing argument 1 of 'lsftp_dc_glob_matches' differ in signedness [-Wpointer-sign] 1742 | fname, | ^~~~~ | | | uint8_t * {aka unsigned char *} -commands.c: In function 'com_lcd': -commands.c:1868:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable] - 1868 | int ret; - | ^~~ In file included from sftp_bind.h:64, from sftp_bind.c:34: dc.h:54:39: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 54 | int lsftp_dc_glob_matches(const char *fname, const char *glob, int period); | ~~~~~~~~~~~~^~~~~ +rl.c: In function 'lsftp_rl_history_fname': +rl.c:522:9: warning: unused variable 'username' [-Wunused-variable] + 522 | char* username; + | ^~~~~~~~ sftp_bind.c:1771:23: warning: pointer targets in passing argument 1 of 'lsftp_concat' differ in signedness [-Wpointer-sign] 1771 | tmp = lsftp_concat( fname, "/" ); /* Add a trailing slash for directories */ | ^~~~~ @@ -1527,32 +1617,6 @@ sftp_c.h:183:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 183 | const uint8_t *name, | ~~~~~~~~~~~~~~~^~~~ -commands.c: In function 'handle_command': -commands.c:2144:29: warning: pointer targets in initialization of 'const char *' from 'const unsigned char *' differ in signedness [-Wpointer-sign] - 2144 | const char *entered_cmd = s; - | ^ -commands.c:2149:20: warning: pointer targets in passing argument 1 of 'lsftp_s_skip' differ in signedness [-Wpointer-sign] - 2149 | s = lsftp_s_skip(s," \n\t\r"); /* Skip any initial whitespace */ - | ^ - | | - | const unsigned char * -In file included from sftp_bind.h:63, - from commands.h:41, - from commands.c:31: -str_utils.h:42:38: note: expected 'const char *' but argument is of type 'const unsigned char *' - 42 | const char *lsftp_s_skip(const char *s, const char *sep); - | ~~~~~~~~~~~~^ -commands.c:2149:5: warning: pointer targets in assignment from 'const char *' to 'const unsigned char *' differ in signedness [-Wpointer-sign] - 2149 | s = lsftp_s_skip(s," \n\t\r"); /* Skip any initial whitespace */ - | ^ -commands.c:2158:25: warning: pointer targets in passing argument 1 of 'com_escape' differ in signedness [-Wpointer-sign] - 2158 | return com_escape( s+1, entered_cmd ); - | ~^~ - | | - | const unsigned char * -commands.c:352:24: note: expected 'const char *' but argument is of type 'const unsigned char *' - 352 | com_escape(const char *arg, const char *command UNUSED) - | ~~~~~~~~~~~~^~~ sftp_bind.c: In function 'lsftp_handle_realpath': sftp_bind.c:2245:26: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 2245 | *destptr = strdup( fname ); /* Copy whatever name we have */ @@ -1586,63 +1650,6 @@ sftp_c.h:226:20: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 226 | const uint8_t *name, | ~~~~~~~~~~~~~~~^~~~ -commands.c:2161:27: warning: pointer targets in passing argument 1 of 'com_longhelp' differ in signedness [-Wpointer-sign] - 2161 | return com_longhelp( s+1, entered_cmd ); - | ~^~ - | | - | const unsigned char * -commands.c:244:26: note: expected 'const char *' but argument is of type 'const unsigned char *' - 244 | com_longhelp(const char *arg, const char *command UNUSED) - | ~~~~~~~~~~~~^~~ -commands.c:2165:22: warning: pointer targets in passing argument 1 of 'lsftp_s_strtok' differ in signedness [-Wpointer-sign] - 2165 | s = lsftp_s_strtok(s," \n\t\r", &tmp ); - | ^ - | | - | const unsigned char * -In file included from sftp_bind.h:63, - from commands.h:41, - from commands.c:31: -str_utils.h:39:40: note: expected 'const char *' but argument is of type 'const unsigned char *' - 39 | const char *lsftp_s_strtok(const char *s, const char* tok, - | ~~~~~~~~~~~~^ -In file included from /usr/include/string.h:495, - from misc_fun.h:33, - from misc_fun.c:32: -In function 'strncpy', - inlined from 'lsftp_concat' at misc_fun.c:102:3: -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -commands.c:2165:5: warning: pointer targets in assignment from 'const char *' to 'const unsigned char *' differ in signedness [-Wpointer-sign] - 2165 | s = lsftp_s_strtok(s," \n\t\r", &tmp ); - | ^ -misc_fun.c: In function 'lsftp_concat': -misc_fun.c:94:8: note: length computed here - 94 | i1 = strlen( s1 ); - | ^~~~~~~~~~~~ -In file included from /usr/include/string.h:495, - from misc_fun.h:33, - from misc_fun.c:32: -In function 'strncpy', - inlined from 'lsftp_concat' at misc_fun.c:103:3: -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -misc_fun.c: In function 'lsftp_concat': -misc_fun.c:95:8: note: length computed here - 95 | i2 = strlen( s2 ); - | ^~~~~~~~~~~~ -commands.c:2184:22: warning: pointer targets in passing argument 1 of 'lsftp_s_skip' differ in signedness [-Wpointer-sign] - 2184 | lsftp_s_skip(s," \n\t\r"), - | ^ - | | - | const unsigned char * -In file included from sftp_bind.h:63, - from commands.h:41, - from commands.c:31: -str_utils.h:42:38: note: expected 'const char *' but argument is of type 'const unsigned char *' - 42 | const char *lsftp_s_skip(const char *s, const char *sep); - | ~~~~~~~~~~~~^ sftp_bind.c: In function 'lsftp_handle_stat': sftp_bind.c:2390:9: warning: unused variable 'f' [-Wunused-variable] 2390 | void* f; @@ -1679,6 +1686,7 @@ sftp_c.h:133:20: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 133 | const uint8_t *linkname, | ~~~~~~~~~~~~~~~^~~~~~~~ +gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o dump-hex.o dump-hex.c sftp_bind.c:2531:4: warning: pointer targets in passing argument 7 of 'sftp_symlink_init' differ in signedness [-Wpointer-sign] 2531 | tmp2, | ^~~~ @@ -1722,6 +1730,7 @@ sftp_c.h:157:19: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 157 | const uint8_t *name, | ~~~~~~~~~~~~~~~^~~~ +gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o sftp-server.o sftp-server.c sftp-test-client.c: In function 'do_ls': sftp-test-client.c:168:41: warning: pointer targets in passing argument 3 of 'sftp_put_string' differ in signedness [-Wpointer-sign] 168 | sftp_put_string(ctx->o, strlen(name), name); @@ -1744,6 +1753,7 @@ buffer.h:108:72: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 108 | sftp_put_string(struct sftp_output *o, uint32_t length, const uint8_t *data); | ~~~~~~~~~~~~~~~^~~~ +gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o filemode.o filemode.c sftp-test-client.c: In function 'do_stat': sftp-test-client.c:526:41: warning: pointer targets in passing argument 3 of 'sftp_put_string' differ in signedness [-Wpointer-sign] 526 | sftp_put_string(ctx->o, strlen(name), name); @@ -1755,22 +1765,47 @@ buffer.h:108:72: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 108 | sftp_put_string(struct sftp_output *o, uint32_t length, const uint8_t *data); | ~~~~~~~~~~~~~~~^~~~ -gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o client.o client.c -gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o dump-hex.o dump-hex.c -gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o sftp-server.o sftp-server.c -gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o filemode.o filemode.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o idcache.o idcache.c -client.c: In function 'sftp_open': -client.c:110:41: warning: pointer targets in passing argument 3 of 'sftp_put_string' differ in signedness [-Wpointer-sign] - 110 | sftp_put_string(ctx->o, strlen(name), name ); - | ^~~~ - | | - | const char * -In file included from client.h:29, - from client.c:32: -buffer.h:108:72: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' - 108 | sftp_put_string(struct sftp_output *o, uint32_t length, const uint8_t *data); - | ~~~~~~~~~~~~~~~^~~~ +lsftp.c: In function 'lsftp_interactive_mainloop': +lsftp.c:142:23: warning: pointer targets in passing argument 1 of 'handle_command' differ in signedness [-Wpointer-sign] + 142 | handle_command( current_line ); + | ^~~~~~~~~~~~ + | | + | char * +In file included from rl.h:33, + from lsftp.h:36, + from lsftp.c:31: +commands.h:58:41: note: expected 'const unsigned char *' but argument is of type 'char *' + 58 | int handle_command(const unsigned char *s); + | ~~~~~~~~~~~~~~~~~~~~~^ +lsftp.c:78:11: warning: variable 'retval' set but not used [-Wunused-but-set-variable] + 78 | int retval; + | ^~~~~~ +lsftp.c: In function 'lsftp_noninteractive_mainloop': +lsftp.c:167:22: warning: pointer targets in passing argument 1 of 'handle_command' differ in signedness [-Wpointer-sign] + 167 | handle_command( argv[startat++] ); /* Do it */ + | ~~~~^~~~~~~~~~~ + | | + | char * +In file included from rl.h:33, + from lsftp.h:36, + from lsftp.c:31: +commands.h:58:41: note: expected 'const unsigned char *' but argument is of type 'char *' + 58 | int handle_command(const unsigned char *s); + | ~~~~~~~~~~~~~~~~~~~~~^ +lsftp.c: In function 'main': +lsftp.c:181:17: warning: passing argument 1 of 'do_gnu_stuff' from incompatible pointer type [-Wincompatible-pointer-types] + 181 | do_gnu_stuff( argv ); /* Check for GNU thingies and act accordingly */ + | ^~~~ + | | + | char ** +In file included from commands.h:45, + from rl.h:33, + from lsftp.h:36, + from lsftp.c:31: +gnu_stuff.h:35:33: note: expected 'const char **' but argument is of type 'char **' + 35 | void do_gnu_stuff( const char** argv ); + | ~~~~~~~~~~~~~^~~~ dump-hex.c: In function 'main': dump-hex.c:189:33: warning: pointer targets in passing argument 2 of 'do_read' differ in signedness [-Wpointer-sign] 189 | res = do_read(STDIN_FILENO, buf, left); @@ -2198,16 +2233,6 @@ gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tag.o tag.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o reduce.o reduce.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o verify.o verify.c -parse.c: In function 'spki_intern': -parse.c:60:22: warning: pointer targets in passing argument 1 of 'spki_gperf' differ in signedness [-Wpointer-sign] - 60 | = spki_gperf(i->sexp.atom, i->sexp.atom_length); - | ~~~~~~~^~~~~ - | | - | const uint8_t * {aka const unsigned char *} -In file included from parse.c:42: -spki-gperf.h:88:34: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} - 88 | spki_gperf (register const char *str, register unsigned int len) - | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from names.c:27: spki-type-names.h:7:8: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 7 | { 3, "acl" }, @@ -2317,6 +2342,16 @@ 33 | { 7, "version" }, | ^~~~~~~~~ spki-type-names.h:33:8: note: (near initialization for 'spki_type_names[27].name') +parse.c: In function 'spki_intern': +parse.c:60:22: warning: pointer targets in passing argument 1 of 'spki_gperf' differ in signedness [-Wpointer-sign] + 60 | = spki_gperf(i->sexp.atom, i->sexp.atom_length); + | ~~~~~~~^~~~~ + | | + | const uint8_t * {aka const unsigned char *} +In file included from parse.c:42: +spki-gperf.h:88:34: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} + 88 | spki_gperf (register const char *str, register unsigned int len) + | ~~~~~~~~~~~~~~~~~~~~~^~~ tag.c: In function 'spki_tag_release': tag.c:426:2: warning: this statement may fall through [-Wimplicit-fallthrough=] 426 | spki_string_release(ctx, realloc, self->upper); @@ -2346,6 +2381,13 @@ gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o sign.o sign.c gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o spki-delegate.o spki-delegate.c gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o spki-reduce.o spki-reduce.c +misc.c: In function 'hash_file': +misc.c:67:30: warning: pointer targets in passing argument 3 of 'hash->update' differ in signedness [-Wpointer-sign] + 67 | hash->update(ctx, res, buffer); + | ^~~~~~ + | | + | char * +misc.c:67:30: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' spki-check-signature.c: In function 'main': spki-check-signature.c:116:66: warning: pointer targets in passing argument 3 of 'nettle_sexp_transport_iterator_first' differ in signedness [-Wpointer-sign] 116 | if (sexp_transport_iterator_first(&sexp, strlen(o.signature), o.signature) @@ -2370,13 +2412,6 @@ spki-check-signature.c:90:2: note: here 90 | case 'n': | ^~~~ -misc.c: In function 'hash_file': -misc.c:67:30: warning: pointer targets in passing argument 3 of 'hash->update' differ in signedness [-Wpointer-sign] - 67 | hash->update(ctx, res, buffer); - | ^~~~~~ - | | - | char * -misc.c:67:30: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' spki-reduce.c: In function 'process_acls': spki-reduce.c:115:48: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] 115 | && spki_transport_iterator_first(&i, length, data) @@ -2414,44 +2449,6 @@ spki-reduce.c:91:2: note: here 91 | case 'a': | ^~~~ -spki-make-signature.c: In function 'main': -spki-make-signature.c:136:56: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] - 136 | if (! (spki_transport_iterator_first(&i, key_length, key) - | ^~~ - | | - | char * -In file included from spki-make-signature.c:34: -../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' - 67 | unsigned length, uint8_t *expr); - | ~~~~~~~~~^~~~ -spki-make-signature.c:151:15: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] - 151 | digest = hash_file(ctx.hash_algorithm, stdin); - | ^ -spki-make-signature.c:158:35: warning: pointer targets in passing argument 3 of 'spki_sign_digest' differ in signedness [-Wpointer-sign] - 158 | spki_sign_digest(&ctx, &buffer, digest); - | ^~~~~~ - | | - | char * -In file included from spki-make-signature.c:38: -sign.h:64:19: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 64 | const uint8_t *digest); - | ~~~~~~~~~~~~~~~^~~~~~ -spki-make-signature.c:162:46: warning: pointer targets in passing argument 3 of 'write_file' differ in signedness [-Wpointer-sign] - 162 | if (!write_file(stdout, buffer.size, buffer.contents)) - | ~~~~~~^~~~~~~~~ - | | - | uint8_t * {aka unsigned char *} -In file included from spki-make-signature.c:37: -misc.h:48:48: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} - 48 | write_file(FILE *f, unsigned size, const char *buffer); - | ~~~~~~~~~~~~^~~~~~ -spki-make-signature.c: In function 'parse_options': -spki-make-signature.c:99:4: warning: this statement may fall through [-Wimplicit-fallthrough=] - 99 | die("spki-make-signature --version not implemented\n"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -spki-make-signature.c:101:2: note: here - 101 | case 's': - | ^~~~ spki-delegate.c: In function 'process_principal': spki-delegate.c:157:55: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] 157 | if (spki_transport_iterator_first(&i, strlen(expr), expr) @@ -2485,16 +2482,47 @@ spki-delegate.c:213:12: warning: pointer targets in assignment from 'const uint8_t *' {aka 'const unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 213 | && (tag = spki_parse_prevexpr(&i, start, &tag_length))) | ^ +spki-make-signature.c: In function 'main': +spki-make-signature.c:136:56: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] + 136 | if (! (spki_transport_iterator_first(&i, key_length, key) + | ^~~ + | | + | char * +In file included from spki-make-signature.c:34: +../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' + 67 | unsigned length, uint8_t *expr); + | ~~~~~~~~~^~~~ +spki-make-signature.c:151:15: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] + 151 | digest = hash_file(ctx.hash_algorithm, stdin); + | ^ spki-delegate.c: In function 'main': +spki-make-signature.c:158:35: warning: pointer targets in passing argument 3 of 'spki_sign_digest' differ in signedness [-Wpointer-sign] + 158 | spki_sign_digest(&ctx, &buffer, digest); + | ^~~~~~ + | | + | char * spki-delegate.c:301:60: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] 301 | if (! (spki_transport_iterator_first(&i, key_length, key) | ^~~ | | | char * +In file included from spki-make-signature.c:38: +sign.h:64:19: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 64 | const uint8_t *digest); + | ~~~~~~~~~~~~~~~^~~~~~ In file included from spki-delegate.c:35: ../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 67 | unsigned length, uint8_t *expr); | ~~~~~~~~~^~~~ +spki-make-signature.c:162:46: warning: pointer targets in passing argument 3 of 'write_file' differ in signedness [-Wpointer-sign] + 162 | if (!write_file(stdout, buffer.size, buffer.contents)) + | ~~~~~~^~~~~~~~~ + | | + | uint8_t * {aka unsigned char *} +In file included from spki-make-signature.c:37: +misc.h:48:48: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} + 48 | write_file(FILE *f, unsigned size, const char *buffer); + | ~~~~~~~~~~~~^~~~~~ spki-delegate.c:319:24: warning: pointer targets in passing argument 3 of 'write_file' differ in signedness [-Wpointer-sign] 319 | buffer.size, buffer.contents)) | ~~~~~~^~~~~~~~~ @@ -2504,6 +2532,13 @@ misc.h:48:48: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 48 | write_file(FILE *f, unsigned size, const char *buffer); | ~~~~~~~~~~~~^~~~~~ +spki-make-signature.c: In function 'parse_options': +spki-make-signature.c:99:4: warning: this statement may fall through [-Wimplicit-fallthrough=] + 99 | die("spki-make-signature --version not implemented\n"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +spki-make-signature.c:101:2: note: here + 101 | case 's': + | ^~~~ spki-delegate.c: In function 'parse_options': spki-delegate.c:114:4: warning: this statement may fall through [-Wimplicit-fallthrough=] 114 | die("spki-delegate --version not implemented\n"); @@ -2532,41 +2567,13 @@ | ^~~~~~~ | | | char * +In file included from tag-test.c:1: +tag-test.c: In function 'test_main': In file included from testutils.h:5, from principal-test.c:1: ../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 221 | unsigned key_length, const uint8_t *key); | ~~~~~~~~~~~~~~~^~~ -In file included from principal-test.c:1: -principal-test.c:14:40: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 14 | ASSERT(spki_principal_by_key(&db, 5, "3:foo") == s); - | ^~~~~~~ - | | - | char * -testutils.h:27:30: note: in definition of macro 'ASSERT' - 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) - | ^ -In file included from testutils.h:5, - from principal-test.c:1: -../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 221 | unsigned key_length, const uint8_t *key); - | ~~~~~~~~~~~~~~~^~~ -In file included from principal-test.c:1: -principal-test.c:15:40: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 15 | ASSERT(spki_principal_by_key(&db, 5, "3:bar") != s); - | ^~~~~~~ - | | - | char * -testutils.h:27:30: note: in definition of macro 'ASSERT' - 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) - | ^ -In file included from testutils.h:5, - from principal-test.c:1: -../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 221 | unsigned key_length, const uint8_t *key); - | ~~~~~~~~~~~~~~~^~~ -In file included from tag-test.c:1: -tag-test.c: In function 'test_main': tag-test.c:25:19: warning: pointer targets in passing argument 2 of 'includes' differ in signedness [-Wpointer-sign] 25 | ASSERT(INCLUDES("(3:ftp18:ftp.lysator.liu.se)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2599,9 +2606,37 @@ tag-test.c:25:10: note: in expansion of macro 'INCLUDES' 25 | ASSERT(INCLUDES("(3:ftp18:ftp.lysator.liu.se)", | ^~~~~~~~ +In file included from principal-test.c:1: +principal-test.c:14:40: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 14 | ASSERT(spki_principal_by_key(&db, 5, "3:foo") == s); + | ^~~~~~~ + | | + | char * +testutils.h:27:30: note: in definition of macro 'ASSERT' + 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) + | ^ tag-test.c:5:36: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 5 | unsigned blength, const uint8_t *bdata) | ~~~~~~~~~~~~~~~^~~~~ +In file included from testutils.h:5, + from principal-test.c:1: +../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 221 | unsigned key_length, const uint8_t *key); + | ~~~~~~~~~~~~~~~^~~ +In file included from principal-test.c:1: +principal-test.c:15:40: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 15 | ASSERT(spki_principal_by_key(&db, 5, "3:bar") != s); + | ^~~~~~~ + | | + | char * +testutils.h:27:30: note: in definition of macro 'ASSERT' + 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) + | ^ +In file included from testutils.h:5, + from principal-test.c:1: +../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 221 | unsigned key_length, const uint8_t *key); + | ~~~~~~~~~~~~~~~^~~ In file included from tag-test.c:1: tag-test.c:28:20: warning: pointer targets in passing argument 2 of 'includes' differ in signedness [-Wpointer-sign] 28 | ASSERT(!INCLUDES("(3:ftp18:ftp.lysator.liu.se)", @@ -2692,49 +2727,6 @@ tag-test.c:4:43: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 4 | includes(unsigned alength, const uint8_t *adata, | ~~~~~~~~~~~~~~~^~~~~ -In file included from read-acl-test.c:1: -read-acl-test.c: In function 'test_main': -read-acl-test.c:11:6: warning: pointer targets in passing argument 3 of 'read_acl' differ in signedness [-Wpointer-sign] - 11 | ("(3:acl(7:version1:\0)(5:entry" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:30:35: note: in definition of macro 'LDATA' - 30 | #define LDATA(x) (sizeof(x) - 1), x - | ^ -testutils.h:17:35: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 17 | unsigned length, const uint8_t *data); - | ~~~~~~~~~~~~~~~^~~~ -read-acl-test.c:17:43: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 17 | ASSERT(spki_principal_by_key(&db, LDATA("k1"))); - | ^~~~ - | | - | char * -testutils.h:27:30: note: in definition of macro 'ASSERT' - 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) - | ^ -read-acl-test.c:17:37: note: in expansion of macro 'LDATA' - 17 | ASSERT(spki_principal_by_key(&db, LDATA("k1"))); - | ^~~~~ -In file included from testutils.h:5, - from read-acl-test.c:1: -../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 221 | unsigned key_length, const uint8_t *key); - | ~~~~~~~~~~~~~~~^~~ -In file included from read-acl-test.c:1: -read-acl-test.c:18:37: warning: pointer targets in passing argument 2 of 'spki_principal_by_md5' differ in signedness [-Wpointer-sign] - 18 | ASSERT(spki_principal_by_md5(&db, "xxxxxxxxxxxxxxxx")); - | ^~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:27:30: note: in definition of macro 'ASSERT' - 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) - | ^ -In file included from testutils.h:5, - from read-acl-test.c:1: -../certificate.h:224:62: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 224 | spki_principal_by_md5(struct spki_acl_db *db, const uint8_t *digest); - | ~~~~~~~~~~~~~~~^~~~~~ In file included from tag-test.c:1: tag-test.c:36:6: warning: pointer targets in passing argument 4 of 'includes' differ in signedness [-Wpointer-sign] 36 | "(3:ftp18:ftp.lysator.liu.se)")); @@ -3187,6 +3179,8 @@ | ~~~~~~~~~~~~~~~^~~~~ In file included from lookup-acl-test.c:1: lookup-acl-test.c: In function 'test_main': +In file included from read-cert-test.c:1: +read-cert-test.c: In function 'test_main': lookup-acl-test.c:17:6: warning: pointer targets in passing argument 3 of 'read_acl' differ in signedness [-Wpointer-sign] 17 | ("(3:acl(5:entry(7:subject(10:public-key2:k1))" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3198,6 +3192,14 @@ testutils.h:17:35: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 17 | unsigned length, const uint8_t *data); | ~~~~~~~~~~~~~~~^~~~ +read-cert-test.c:23:12: warning: pointer targets in passing argument 4 of 'read_cert' differ in signedness [-Wpointer-sign] + 23 | LDATA("(4:cert(6:issuer(10:public-key2:k1))" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:30:35: note: in definition of macro 'LDATA' + 30 | #define LDATA(x) (sizeof(x) - 1), x + | ^ lookup-acl-test.c:22:41: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] 22 | k1 = spki_principal_by_key(&db, LDATA("(10:public-key2:k1)")); | ^~~~~~~~~~~~~~~~~~~~~ @@ -3206,11 +3208,44 @@ testutils.h:30:35: note: in definition of macro 'LDATA' 30 | #define LDATA(x) (sizeof(x) - 1), x | ^ +read-cert-test.c:5:36: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 5 | unsigned length, const uint8_t *data) + | ~~~~~~~~~~~~~~~^~~~ +In file included from read-acl-test.c:1: +read-acl-test.c: In function 'test_main': In file included from testutils.h:5, from lookup-acl-test.c:1: ../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 221 | unsigned key_length, const uint8_t *key); | ~~~~~~~~~~~~~~~^~~ +read-acl-test.c:11:6: warning: pointer targets in passing argument 3 of 'read_acl' differ in signedness [-Wpointer-sign] + 11 | ("(3:acl(7:version1:\0)(5:entry" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:30:35: note: in definition of macro 'LDATA' + 30 | #define LDATA(x) (sizeof(x) - 1), x + | ^ +In file included from read-cert-test.c:1: +read-cert-test.c:30:36: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 30 | spki_principal_by_key(&db, LDATA("(10:public-key2:k1)"))); + | ^~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:27:30: note: in definition of macro 'ASSERT' + 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) + | ^ +read-cert-test.c:30:30: note: in expansion of macro 'LDATA' + 30 | spki_principal_by_key(&db, LDATA("(10:public-key2:k1)"))); + | ^~~~~ +testutils.h:17:35: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 17 | unsigned length, const uint8_t *data); + | ~~~~~~~~~~~~~~~^~~~ +In file included from testutils.h:5, + from read-cert-test.c:1: +../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 221 | unsigned key_length, const uint8_t *key); + | ~~~~~~~~~~~~~~~^~~ In file included from lookup-acl-test.c:1: lookup-acl-test.c:25:41: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] 25 | k2 = spki_principal_by_key(&db, LDATA("(10:public-key2:k2)")); @@ -3225,6 +3260,39 @@ ../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 221 | unsigned key_length, const uint8_t *key); | ~~~~~~~~~~~~~~~^~~ +read-acl-test.c:17:43: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 17 | ASSERT(spki_principal_by_key(&db, LDATA("k1"))); + | ^~~~ + | | + | char * +testutils.h:27:30: note: in definition of macro 'ASSERT' + 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) + | ^ +read-acl-test.c:17:37: note: in expansion of macro 'LDATA' + 17 | ASSERT(spki_principal_by_key(&db, LDATA("k1"))); + | ^~~~~ +In file included from read-cert-test.c:1: +read-cert-test.c:32:36: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 32 | spki_principal_by_key(&db, LDATA("(10:public-key2:k2)"))); + | ^~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:27:30: note: in definition of macro 'ASSERT' + 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) + | ^ +read-cert-test.c:32:30: note: in expansion of macro 'LDATA' + 32 | spki_principal_by_key(&db, LDATA("(10:public-key2:k2)"))); + | ^~~~~ +In file included from testutils.h:5, + from read-acl-test.c:1: +../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 221 | unsigned key_length, const uint8_t *key); + | ~~~~~~~~~~~~~~~^~~ +In file included from testutils.h:5, + from read-cert-test.c:1: +../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 221 | unsigned key_length, const uint8_t *key); + | ~~~~~~~~~~~~~~~^~~ In file included from lookup-acl-test.c:1: lookup-acl-test.c:30:41: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] 30 | k3 = spki_principal_by_key(&db, LDATA("(10:public-key2:k3)")); @@ -3239,6 +3307,20 @@ ../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 221 | unsigned key_length, const uint8_t *key); | ~~~~~~~~~~~~~~~^~~ +In file included from read-acl-test.c:1: +read-acl-test.c:18:37: warning: pointer targets in passing argument 2 of 'spki_principal_by_md5' differ in signedness [-Wpointer-sign] + 18 | ASSERT(spki_principal_by_md5(&db, "xxxxxxxxxxxxxxxx")); + | ^~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:27:30: note: in definition of macro 'ASSERT' + 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) + | ^ +In file included from testutils.h:5, + from read-acl-test.c:1: +../certificate.h:224:62: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 224 | spki_principal_by_md5(struct spki_acl_db *db, const uint8_t *digest); + | ~~~~~~~~~~~~~~~^~~~~~ In file included from lookup-acl-test.c:1: lookup-acl-test.c:45:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] 45 | tag = make_tag(LDATA("(4:http)")); @@ -3251,6 +3333,10 @@ testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 20 | make_tag(unsigned length, const uint8_t *expr); | ~~~~~~~~~~~~~~~^~~~ +cdsa-reduce-test.c: In function 'test_main': +cdsa-reduce-test.c:140:7: warning: pointer targets in assignment from 'char *' to 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 140 | data = read_file(srcdir, "cdsa-cases/", i, ".in", + | ^ lookup-acl-test.c:52:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] 52 | tag = make_tag(LDATA("(3:ftp)")); | ^~~~~~~~~ @@ -3295,62 +3381,11 @@ testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 20 | make_tag(unsigned length, const uint8_t *expr); | ~~~~~~~~~~~~~~~^~~~ -In file included from read-cert-test.c:1: -read-cert-test.c: In function 'test_main': -read-cert-test.c:23:12: warning: pointer targets in passing argument 4 of 'read_cert' differ in signedness [-Wpointer-sign] - 23 | LDATA("(4:cert(6:issuer(10:public-key2:k1))" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:30:35: note: in definition of macro 'LDATA' - 30 | #define LDATA(x) (sizeof(x) - 1), x - | ^ -read-cert-test.c:5:36: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 5 | unsigned length, const uint8_t *data) - | ~~~~~~~~~~~~~~~^~~~ -In file included from read-cert-test.c:1: -read-cert-test.c:30:36: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 30 | spki_principal_by_key(&db, LDATA("(10:public-key2:k1)"))); - | ^~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:27:30: note: in definition of macro 'ASSERT' - 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) - | ^ -read-cert-test.c:30:30: note: in expansion of macro 'LDATA' - 30 | spki_principal_by_key(&db, LDATA("(10:public-key2:k1)"))); - | ^~~~~ -In file included from testutils.h:5, - from read-cert-test.c:1: -../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 221 | unsigned key_length, const uint8_t *key); - | ~~~~~~~~~~~~~~~^~~ -In file included from read-cert-test.c:1: -read-cert-test.c:32:36: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 32 | spki_principal_by_key(&db, LDATA("(10:public-key2:k2)"))); - | ^~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:27:30: note: in definition of macro 'ASSERT' - 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) - | ^ -read-cert-test.c:32:30: note: in expansion of macro 'LDATA' - 32 | spki_principal_by_key(&db, LDATA("(10:public-key2:k2)"))); - | ^~~~~ -In file included from testutils.h:5, - from read-cert-test.c:1: -../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 221 | unsigned key_length, const uint8_t *key); - | ~~~~~~~~~~~~~~~^~~ -cdsa-reduce-test.c: In function 'test_main': -cdsa-reduce-test.c:140:7: warning: pointer targets in assignment from 'char *' to 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 140 | data = read_file(srcdir, "cdsa-cases/", i, ".in", - | ^ gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o principal-test principal-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o date-test date-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o read-acl-test read-acl-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp -gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o tag-test tag-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o read-cert-test read-cert-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp +gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o tag-test tag-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lookup-acl-test lookup-acl-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o cdsa-reduce-test cdsa-reduce-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp make check to build testprograms. @@ -3374,6 +3409,7 @@ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_keyexchange.o client_keyexchange.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_pty.o client_pty.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_session.o client_session.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_userauth.o client_userauth.c In file included from atoms.c:45: atoms_table.c:5:5: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 5 | { { "UNKNOWN", 7 }, {"none", 4}, @@ -3771,7 +3807,6 @@ 102 | {"n", 1}, | ^~~ atoms_table.c:102:4: note: (near initialization for 'atom_table[98].name') -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_userauth.o client_userauth.c atoms_table.c:103:4: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 103 | {"e", 1}, | ^~~ @@ -3808,7 +3843,6 @@ 111 | {"ssh-ring1", 9}, | ^~~~~~~~~~~ atoms_table.c:111:4: note: (near initialization for 'atom_table[107].name') -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_x11.o client_x11.c client.c: In function 'do_exit_signal': client.c:321:27: warning: pointer targets in passing argument 2 of 'parse_atom' differ in signedness [-Wpointer-sign] 321 | && parse_atom(args, &signal) @@ -3841,6 +3875,7 @@ lsh_string.h:110:19: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 110 | const uint8_t *data); | ~~~~~~~~~~~~~~~^~~~ +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_x11.o client_x11.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o combinators.o combinators.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o command.o command.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o compress.o compress.c @@ -3852,7 +3887,6 @@ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o debug.o debug.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o dh_exchange.o dh_exchange.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o dsa.o dsa.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o exception.o exception.c parse_config.c: In function 'next_token': parse_config.c:156:18: warning: pointer targets in assignment from 'const uint8_t *' {aka 'const unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 156 | self->token = HERE; @@ -3867,6 +3901,7 @@ lsh_string.h:89:77: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 89 | lsh_string_eq_l(const struct lsh_string *a, uint32_t length, const uint8_t *b); | ~~~~~~~~~~~~~~~^ +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o exception.o exception.c crypto.c: In function 'do_aes_cbc_encrypt': crypto.c:117:5: warning: 'nettle_aes_encrypt' is deprecated [-Wdeprecated-declarations] 117 | (nettle_crypt_func*) aes_encrypt, @@ -3914,6 +3949,8 @@ /usr/include/nettle/aes.h:158:1: note: declared here 158 | aes_set_encrypt_key(struct aes_ctx *ctx, | ^~~~~~~~~~~~~~~~~~~ +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o format.o format.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gc.o gc.c dsa.c: In function 'do_dsa_verify': dsa.c:138:30: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 138 | const uint8_t *names[2] = { "r", "s" }; @@ -3932,9 +3969,23 @@ /usr/include/nettle/sexp.h:152:27: note: expected 'const char * const*' but argument is of type 'const uint8_t **' {aka 'const unsigned char **'} 152 | const char * const *keys, | ~~~~~~~~~~~~~~~~~~~~^~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o format.o format.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gc.o gc.c +format.c: In function 'ssh_vformat_write': +format.c:362:13: warning: pointer targets in assignment from 'const char *' to 'const uint8_t *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] + 362 | data = va_arg(args, const char *); + | ^ +format.c:363:22: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] + 363 | size = strlen(data); + | ^~~~ + | | + | const uint8_t * {aka const unsigned char *} +In file included from format.c:29: +/usr/include/string.h:385:35: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} + 385 | extern size_t strlen (const char *__s) + | ~~~~~~~~~~~~^~~ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway.o gateway.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway_channel.o gateway_channel.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway_commands.o gateway_commands.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o handshake.o handshake.c gateway.c: In function 'make_gateway_address': gateway.c:92:20: warning: pointer targets in passing argument 1 of 'check_string' differ in signedness [-Wpointer-sign] 92 | if (check_string(local_user) @@ -3960,22 +4011,6 @@ gateway.c:51:48: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 51 | check_string_l(unsigned length, const uint8_t *s) | ~~~~~~~~~~~~~~~^ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway_channel.o gateway_channel.c -format.c: In function 'ssh_vformat_write': -format.c:362:13: warning: pointer targets in assignment from 'const char *' to 'const uint8_t *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] - 362 | data = va_arg(args, const char *); - | ^ -format.c:363:22: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] - 363 | size = strlen(data); - | ^~~~ - | | - | const uint8_t * {aka const unsigned char *} -In file included from format.c:29: -/usr/include/string.h:385:35: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} - 385 | extern size_t strlen (const char *__s) - | ~~~~~~~~~~~~^~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway_commands.o gateway_commands.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o handshake.o handshake.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o interact.o interact.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o io.o io.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o io_commands.o io_commands.c @@ -3983,6 +4018,8 @@ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o list.o list.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lookup_verifier.o lookup_verifier.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lock_file.o lock_file.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh_string.o lsh_string.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o parse.o parse.c In file included from list.c:35: list.c: In function 'lsh_list_alloc': xalloc.h:95:30: warning: statement with no effect [-Wunused-value] @@ -3991,9 +4028,17 @@ list.c:55:3: note: in expansion of macro 'CHECK_SUBTYPE' 55 | CHECK_SUBTYPE(list_header, list); | ^~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh_string.o lsh_string.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o parse.o parse.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o pkcs5.o pkcs5.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o publickey_crypto.o publickey_crypto.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o queue.o queue.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o randomness.o randomness.c +io.c: In function 'do_buffered_read': +io.c:490:2: warning: this statement may fall through [-Wimplicit-fallthrough=] + 490 | werror("Unexpected EPIPE from read.\n"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +io.c:491:7: note: here + 491 | default: + | ^~~~~~~ lsh_string.c: In function 'lsh_get_cstring': lsh_string.c:139:60: warning: pointer targets in returning 'const uint8_t *' {aka 'const unsigned char *'} from a function with return type 'const char *' differ in signedness [-Wpointer-sign] 139 | return (s && !memchr(s->data, '\0', s->length) ? s->data : NULL); @@ -4004,6 +4049,7 @@ | ^ | | | void (*)(void *, size_t, uint8_t *, const uint8_t *) {aka void (*)(void *, long unsigned int, unsigned char *, const unsigned char *)} +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o read_data.o read_data.c In file included from lsh_string.c:40: /usr/include/nettle/cbc.h:48:50: note: expected 'void (*)(const void *, size_t, uint8_t *, const uint8_t *)' {aka 'void (*)(const void *, long unsigned int, unsigned char *, const unsigned char *)'} but argument is of type 'void (*)(void *, size_t, uint8_t *, const uint8_t *)' {aka 'void (*)(void *, long unsigned int, unsigned char *, const unsigned char *)'} 48 | cbc_encrypt(const void *ctx, nettle_cipher_func *f, @@ -4080,17 +4126,6 @@ /usr/include/nettle/base64.h:107:13: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 107 | char *dst); | ~~~~~~^~~ -io.c: In function 'do_buffered_read': -io.c:490:2: warning: this statement may fall through [-Wimplicit-fallthrough=] - 490 | werror("Unexpected EPIPE from read.\n"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -io.c:491:7: note: here - 491 | default: - | ^~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o publickey_crypto.o publickey_crypto.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o queue.o queue.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o randomness.o randomness.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o read_data.o read_data.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o read_file.o read_file.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o read_line.o read_line.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o read_packet.o read_packet.c @@ -4098,8 +4133,6 @@ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o resource.o resource.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o rsa.o rsa.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server.o server.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_authorization.o server_authorization.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_keyexchange.o server_keyexchange.c read_packet.c: In function 'do_read_packet': read_packet.c:262:24: warning: this statement may fall through [-Wimplicit-fallthrough=] 262 | closure->state = WAIT_CONTENTS; @@ -4113,31 +4146,33 @@ read_packet.c:305:7: note: here 305 | case WAIT_MAC: | ^~~~ +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_authorization.o server_authorization.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_keyexchange.o server_keyexchange.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_password.o server_password.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_publickey.o server_publickey.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_pty.o server_pty.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_session.o server_session.c -server_keyexchange.c: In function 'do_handle_srp_init': -server_keyexchange.c:297:29: warning: variable 'e' set but not used [-Wunused-but-set-variable] - 297 | struct exception_handler *e; - | ^ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_userauth.o server_userauth.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_x11.o server_x11.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o sexp.o sexp.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o socks.o socks.c +server_keyexchange.c: In function 'do_handle_srp_init': +server_keyexchange.c:297:29: warning: variable 'e' set but not used [-Wunused-but-set-variable] + 297 | struct exception_handler *e; + | ^ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o spki.o spki.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o srp_exchange.o srp_exchange.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o string_buffer.o string_buffer.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o suspend.o suspend.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tcpforward.o tcpforward.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tcpforward_commands.o tcpforward_commands.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o translate_signal.o translate_signal.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tty.o tty.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o unix_interact.o unix_interact.c srp_exchange.c: In function 'make_srp_entry': srp_exchange.c:72:32: warning: variable 'salt' set but not used [-Wunused-but-set-variable] 72 | const struct lsh_string *salt; | ^~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o translate_signal.o translate_signal.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tty.o tty.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o unix_interact.o unix_interact.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o unix_process.o unix_process.c spki.c: In function 'make_ssh_hostkey_tag': spki.c:76:22: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'const char *' differ in signedness [-Wpointer-sign] @@ -4189,6 +4224,9 @@ 152 | const char * const *keys, | ~~~~~~~~~~~~~~~~~~~~^~~~ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o unix_random.o unix_random.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o unix_user.o unix_user.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o userauth.o userauth.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o werror.o werror.c unix_interact.c: In function 'unix_get_attributes': unix_interact.c:392:49: warning: comparison of constant '0' with boolean expression is always false [-Wbool-compare] 392 | if (!tty_getattr(self->tty_fd, &res->ios) < 0) @@ -4198,13 +4236,14 @@ 392 | if (!tty_getattr(self->tty_fd, &res->ios) < 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ( ) -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o unix_user.o unix_user.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o userauth.o userauth.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o werror.o werror.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o write_buffer.o write_buffer.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o write_packet.o write_packet.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o xalloc.o xalloc.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o xauth.o xauth.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o zlib.o zlib.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lshg.o lshg.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o dummy.o dummy.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-keygen.o lsh-keygen.c unix_user.c: In function 'do_verify_password': unix_user.c:255:11: warning: pointer targets in assignment from 'const char *' to 'const uint8_t *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] 255 | cpasswd = lsh_get_cstring(password); @@ -4221,10 +4260,7 @@ /usr/include/unistd.h:1124:33: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 1124 | extern char *crypt (const char *__key, const char *__salt) | ~~~~~~~~~~~~^~~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o zlib.o zlib.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lshg.o lshg.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o dummy.o dummy.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-keygen.o lsh-keygen.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-writekey.o lsh-writekey.c werror.c: In function 'werror_cstring': werror.c:294:51: warning: pointer targets in passing argument 2 of 'werror_write' differ in signedness [-Wpointer-sign] 294 | werror_cstring(char *s) { werror_write(strlen(s), s); } @@ -4296,7 +4332,6 @@ werror.c:617:1: warning: 'werror_format' defined but not used [-Wunused-function] 617 | werror_format(const char *format, ...) | ^~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-writekey.o lsh-writekey.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-decrypt-key.o lsh-decrypt-key.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-decode-key.o lsh-decode-key.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-export-key.o lsh-export-key.c @@ -4336,12 +4371,12 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 136 | NULL, NULL, NULL)) { | ~~~~~~~~~~~~~~~~~ -gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-execuv lsh-execuv.o -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp -gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-krb-checkpw lsh-krb-checkpw.o -lkrb5 -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp lshd.c: In function 'main_argp_parser': lshd.c:699:10: warning: 'host' may be used uninitialized in this function [-Wmaybe-uninitialized] 699 | : io_resolv_address(host, "ssh", 22, &self->local))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-execuv lsh-execuv.o -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp +gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-krb-checkpw lsh-krb-checkpw.o -lkrb5 -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp rm -f liblsh.a ar cru liblsh.a abstract_io.o abstract_crypto.o algorithms.o alist.o atoms.o channel.o channel_commands.o channel_forward.o charset.o client.o client_escape.o client_keyexchange.o client_pty.o client_session.o client_userauth.o client_x11.o combinators.o command.o compress.o parse_config.o connection.o connection_commands.o crypto.o daemon.o debug.o dh_exchange.o dsa.o exception.o format.o gc.o gateway.o gateway_channel.o gateway_commands.o handshake.o interact.o io.o io_commands.o keyexchange.o list.o lookup_verifier.o lock_file.o lsh_string.o parse.o pkcs5.o publickey_crypto.o queue.o randomness.o read_data.o read_file.o read_line.o read_packet.o reaper.o resource.o rsa.o server.o server_authorization.o server_keyexchange.o server_password.o server_publickey.o server_pty.o server_session.o server_userauth.o server_x11.o sexp.o socks.o spki.o srp_exchange.o string_buffer.o suspend.o tcpforward.o tcpforward_commands.o translate_signal.o tty.o unix_interact.o unix_process.o unix_random.o unix_user.o userauth.o werror.o write_buffer.o write_packet.o xalloc.o xauth.o zlib.o ar: `u' modifier ignored since `D' is the default (see `U') @@ -4375,10 +4410,11 @@ gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o spki-tag-test.o spki-tag-test.c gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o string-test.o string-test.c gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o parse-config-test.o parse-config-test.c -In file included from cast128-test.c:1: -cast128-test.c: In function 'test_main': -cast128-test.c:7:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 7 | H("0123456789ABCDEF FEDCBA9876543210"), +gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o sockaddr2info-test.o sockaddr2info-test.c +In file included from serpent-test.c:1: +serpent-test.c: In function 'test_main': +serpent-test.c:10:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 10 | H("0123456789ABCDEF FEDCBA9876543210" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * @@ -4388,8 +4424,8 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -cast128-test.c:8:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 8 | H("0000000000000000 1111111111111111"), +serpent-test.c:12:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 12 | H("0000000000000000 0000000000000000" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * @@ -4399,8 +4435,8 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -cast128-test.c:9:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 9 | H("9a1bf354bca596ad f7b2a2ce5f09a8b2"), +serpent-test.c:14:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 14 | H("c170ed586cfda8fe 084f01ef04475883" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * @@ -4410,9 +4446,9 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -cast128-test.c:10:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 10 | H("0011223344556677")); - | ^~~~~~~~~~~~~~~~~~ +serpent-test.c:16:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 16 | H("0011223344556677 8899AABBCCDDEEFF")); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * testutils.h:63:25: note: in definition of macro 'H' @@ -4423,52 +4459,6 @@ | ^~~~~~~~~~~~~~~~~~~~~ In file included from des-test.c:1: des-test.c: In function 'test_main': -In file included from blowfish-test.c:1: -blowfish-test.c: In function 'test_main': -blowfish-test.c:7:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 7 | H("0123456789ABCDEF FEDCBA9876543210"), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -blowfish-test.c:8:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 8 | H("0000000000000000 1111111111111111"), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -blowfish-test.c:9:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 9 | H("f0fb0320a19f306d ff5880191e616c10"), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -blowfish-test.c:10:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 10 | H("0011223344556677")); - | ^~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ des-test.c:7:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] 7 | H("0123456789ABCDEF 1313131313131313 3232323232323232"), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4513,146 +4503,10 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -In file included from arcfour-test.c:1: -arcfour-test.c: In function 'test_main': -arcfour-test.c:7:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 7 | H("01234567 89ABCDEF 00000000 00000000"), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -arcfour-test.c:8:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 8 | H("01234567 89ABCDEF"), - | ^~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -arcfour-test.c:9:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 9 | H("69723659 1B5242B1"), - | ^~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -In file included from aes-test.c:1: -aes-test.c: In function 'test_main': -aes-test.c:9:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 9 | H("603deb1015ca71be2b73aef0857d7781" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -aes-test.c:11:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 11 | H("6bc1bee22e409f96e93d7e117393172a" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -aes-test.c:15:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 15 | H("f58c4c04d6e5f1ba779eabfb5f7bfbd6" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -aes-test.c:19:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 19 | H("000102030405060708090a0b0c0d0e0f")); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -testutils.c: In function 'decode_hex': -testutils.c:62:39: warning: pointer targets in passing argument 1 of 'decode_hex_length' differ in signedness [-Wpointer-sign] - 62 | uint32_t length = decode_hex_length(hex); - | ^~~ - | | - | const unsigned char * -testutils.c:39:31: note: expected 'const char *' but argument is of type 'const unsigned char *' - 39 | decode_hex_length(const char *h) - | ~~~~~~~~~~~~^ -In file included from twofish-test.c:1: -twofish-test.c: In function 'test_main': -twofish-test.c:7:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 7 | H("0123456789ABCDEF FEDCBA9876543210" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -twofish-test.c:9:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 9 | H("0000000000000000 0000000000000000" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -twofish-test.c:11:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 11 | H("7c9cde6d86b1d9f2 9fceb6830c451281" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -twofish-test.c:13:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 13 | H("0011223344556677 8899AABBCCDDEEFF")); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -In file included from serpent-test.c:1: -serpent-test.c: In function 'test_main': -serpent-test.c:10:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 10 | H("0123456789ABCDEF FEDCBA9876543210" +In file included from cast128-test.c:1: +cast128-test.c: In function 'test_main': +cast128-test.c:7:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 7 | H("0123456789ABCDEF FEDCBA9876543210"), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * @@ -4662,8 +4516,8 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -serpent-test.c:12:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 12 | H("0000000000000000 0000000000000000" +cast128-test.c:8:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 8 | H("0000000000000000 1111111111111111"), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * @@ -4673,8 +4527,8 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -serpent-test.c:14:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 14 | H("c170ed586cfda8fe 084f01ef04475883" +cast128-test.c:9:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 9 | H("9a1bf354bca596ad f7b2a2ce5f09a8b2"), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * @@ -4684,9 +4538,9 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -serpent-test.c:16:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 16 | H("0011223344556677 8899AABBCCDDEEFF")); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cast128-test.c:10:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 10 | H("0011223344556677")); + | ^~~~~~~~~~~~~~~~~~ | | | char * testutils.h:63:25: note: in definition of macro 'H' @@ -4928,35 +4782,127 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -In file included from string-test.c:1: -string-test.c: In function 'test_main': -string-test.c:14:9: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 14 | s = H("66006f"); - | ^~~~~~~~ - | | - | char * +In file included from aes-test.c:1: +aes-test.c: In function 'test_main': +aes-test.c:9:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 9 | H("603deb1015ca71be2b73aef0857d7781" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * testutils.h:63:25: note: in definition of macro 'H' 63 | #define H(x) decode_hex(x) | ^ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -string-test.c:17:9: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 17 | s = H("6600"); - | ^~~~~~ - | | - | char * +aes-test.c:11:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 11 | H("6bc1bee22e409f96e93d7e117393172a" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * testutils.h:63:25: note: in definition of macro 'H' 63 | #define H(x) decode_hex(x) | ^ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -string-test.c:20:9: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 20 | s = H(""); - | ^~ - | | - | char * +In file included from arcfour-test.c:1: +arcfour-test.c: In function 'test_main': +aes-test.c:15:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 15 | H("f58c4c04d6e5f1ba779eabfb5f7bfbd6" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +aes-test.c:19:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 19 | H("000102030405060708090a0b0c0d0e0f")); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +arcfour-test.c:7:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 7 | H("01234567 89ABCDEF 00000000 00000000"), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +arcfour-test.c:8:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 8 | H("01234567 89ABCDEF"), + | ^~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +arcfour-test.c:9:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 9 | H("69723659 1B5242B1"), + | ^~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +In file included from twofish-test.c:1: +twofish-test.c: In function 'test_main': +twofish-test.c:7:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 7 | H("0123456789ABCDEF FEDCBA9876543210" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +twofish-test.c:9:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 9 | H("0000000000000000 0000000000000000" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +twofish-test.c:11:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 11 | H("7c9cde6d86b1d9f2 9fceb6830c451281" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +twofish-test.c:13:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 13 | H("0011223344556677 8899AABBCCDDEEFF")); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * testutils.h:63:25: note: in definition of macro 'H' 63 | #define H(x) decode_hex(x) | ^ @@ -5207,7 +5153,99 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o sockaddr2info-test.o sockaddr2info-test.c +testutils.c: In function 'decode_hex': +testutils.c:62:39: warning: pointer targets in passing argument 1 of 'decode_hex_length' differ in signedness [-Wpointer-sign] + 62 | uint32_t length = decode_hex_length(hex); + | ^~~ + | | + | const unsigned char * +testutils.c:39:31: note: expected 'const char *' but argument is of type 'const unsigned char *' + 39 | decode_hex_length(const char *h) + | ~~~~~~~~~~~~^ +In file included from blowfish-test.c:1: +blowfish-test.c: In function 'test_main': +blowfish-test.c:7:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 7 | H("0123456789ABCDEF FEDCBA9876543210"), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +blowfish-test.c:8:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 8 | H("0000000000000000 1111111111111111"), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +blowfish-test.c:9:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 9 | H("f0fb0320a19f306d ff5880191e616c10"), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +blowfish-test.c:10:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 10 | H("0011223344556677")); + | ^~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +In file included from string-test.c:1: +string-test.c: In function 'test_main': +string-test.c:14:9: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 14 | s = H("66006f"); + | ^~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +string-test.c:17:9: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 17 | s = H("6600"); + | ^~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +string-test.c:20:9: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 20 | s = H(""); + | ^~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o utf8-test.o utf8-test.c +gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o mini-inetd.o mini-inetd.c +gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tcpconnect.o tcpconnect.c parse-config-test.c: In function 'test_main': parse-config-test.c:100:48: warning: pointer targets in passing argument 2 of 'config_parse_string' differ in signedness [-Wpointer-sign] 100 | = config_parse_string(strlen(config_file), config_file); @@ -5218,9 +5256,6 @@ /build/lsh-utils-2.1/src/testsuite/../parse_config.h:36:53: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 36 | config_parse_string(uint32_t length, const uint8_t *data); | ~~~~~~~~~~~~~~~^~~~ -gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o utf8-test.o utf8-test.c -gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o mini-inetd.o mini-inetd.c -gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tcpconnect.o tcpconnect.c In file included from sockaddr2info-test.c:1: sockaddr2info-test.c: In function 'test_ip_v4': sockaddr2info-test.c:19:50: warning: pointer targets in passing argument 3 of 'lsh_string_eq_l' differ in signedness [-Wpointer-sign] @@ -5469,39 +5504,38 @@ PASS: conv-3 PASS: export-1 Testing lsh-keygen DSA key generation -xxxxxxxxxqpg(private-key (dsa (p |AKmXfj/G+35urSghXwjR1RSwVvMQMCnIc6Oms88Q+/Jxe4j/mt - 24gMe5DZBa1YAvkfC3TkCytY6kn2iRml6OeIXw6xssZ5hFYygt - bKhZJspD|) - (q |AOt7E5s52kgy47t5nfpfObD1hj5x|) - (g |EB42BudTOCeuqKoHuQI3KZ2kvYRpA2wYm3jHr+N+b/c2uiRj7Y - 08DByftHbCIx4qJmuvBQoHgnHRsJYDBCQsJNDCo+LRr1ELB7aS - D+z48L0=|) - (y |AJQdqTNltIngTk6IZCQgeKBXS40FHyVPyPTNsHUwLtwlyKj7Xo - zeUtcKJrsGE/zNIxfHWGl27syvYfpXKGBN0Rhp1ypB6/bd/M5U - z5ZEgD9b|) - (x |IvJS/DjyL4S4HQhoVSKJuA2Tofg=|))) +xxxxxxxxxqpg(private-key (dsa (p |AKdA4YUdXo/WpPqk4j5ty9q4ryeXQGpk6PXrR0h8e6N5JQfteY + ZKBtwwBiRyPBzPLVAa94fk01PajwaFnwFjsk71yR8ObhUl79AJ + ebFZjAu/|) + (q |AJIZjYwpKAS962ocPI+Nncma4h+p|) + (g |HzAovBJBUCsiSdVqmbalTeOCtIE4DpmlyGi/PHwDvwDijP3qGU + SPPfOuSMOXurQ1Dl1rJn/gIsyf5oLRWAVPLMZRatw0R7FuQYQs + UqCSQLs=|) + (y |AkzmQtVjpHsaJdycEcgvauv2TB81QxKY6EKCPEqWSU5WoZNVaK + JzH3bSUXa9cuhXRrH1Doz+BTrySPJgrYIKIY07TawXBVgzFmqx + npNPVHM=|) + (x |AIm+99xZwJh2hoOxDKfGCrVeeF2o|))) PASS: keygen-1 Testing lsh-keygen RSA key generation xxxxx xxxxx - -(private-key (rsa-pkcs1 (n |AWewyjAgmrhbBBpSZEMWF5P9qN/qFa0Pg7Qct2jcrv4Z - oodIMmRS0z6LvyzISUJfQ6tb6T9TbPVccqRmZUTVg6RW - oRxY/+Hsh39UrQmXeEzukMHMIiUiyD+SlNdlTjGJXFc=|) - (e |JqVJaw==|) - (d |WIP3FFM8RJg+XW7LT+Oge5K9qnXMuIPwwutTt7Hchpsd - xCJ23ixf3zdM1l6tlYMxAqQ7yuly/vqYr5+gsBpQgEol - eqhJupBv5BAEFmkvaFvCLySt37qo5YYkll00oq8f4w==|) - (p |GBjYOcWSRsqlu1P87Ff8xk19XC42dXKgy6fR5Uhrr2+l - gNIu13DDqcQO50qTBIOlcQ==|) - (q |Du0/XNFE83q7QbGbRmMOlLtLbStdvCDWqFa2WmWK/4FP - munrWLdZRb9Ml03INUkaRw==|) - (a |DcTPf5n5YC0g826kJpFcH3tnRvEJQt/ZYBhebds5koH+ - K8cqnCxdZM4luXtpz4T+Yw==|) - (b |Dqt9ikUvs+w8TcFVZnc0RGJ52cbPC7q6IAnV94x2pJ/L - Vu6SgjGj4FXhQfdb+NCI4w==|) - (c |CCE2rrxfSNif6Y8aqAVf56nu2IWJ7Qz6/TJy3Qw6twuc - eRuOISo80asg0DAJGgrh/g==|))) +(private-key (rsa-pkcs1 (n |AUQcs493gjtoF9n4AzzCD/Jy/ufHLDOJ10KThIrcz7GW + PgAZOTaupzw8zS7tNdI9TudZ5Sgy4mNciU3KOjyKU6LF + U2cyoacPBtJkTsqFFeZPkbGJgBBNNAhcUiCtpMO/TIk=|) + (e |Ip8rzw==|) + (d |C0IvNzQyKtMhVXRaKmvBNuHhQ9YV1f9jUWb4bp/P671y + sATEqOYdtV2dO1AfQwJJMmWOcr8izJRm8uAdjg90HWVt + 3vnS0XCyJs5dFLP9/l0ZxtX4C9ZU6xk0PT3p4rggLw==|) + (p |GJ3VDM8wWZ0YJdG9eOrx1zNErcg1uG5NGaqalGHO5iYq + kmRKH9c/DOIPZMlFQWR+eQ==|) + (q |DSqb3nySpjuOrK5MD3gY//6h3og2/OVHOuKE19uHu9XS + l4l3hg+g2Sz8QEiBxn56kQ==|) + (a |E9N1BOj3+v/2rA1YAvAuKYSUgWmJ8QmKWBk030Kjr5tt + YShM671gPLGNvPTkL+Z7Pw==|) + (b |Cuba+8DpPtvsUTxxdWd7a471QKq+tyFpGB0un6a4ye8g + vCB+j62jSJvEyhMB5LhCPw==|) + (c |AynNGQhXQoHlCUMe78Usf78WJfXO2LmLSlgFZNdDzcqP + ME4v5IRdDrl9suHMISIWHQ==|))) PASS: keygen-2 Testing lsh-writekey PASS: write-key-1 @@ -5511,25 +5545,25 @@ test-seed-1 test-seed-2 differ: char 1, line 1 PASS: seed lsh, test 1 -lshd pid: 4051307 +lshd pid: 936735 PASS: lsh-1 lsh, test 2 -lshd pid: 4052622 +lshd pid: 936953 Hello world. PASS: lsh-2 lsh, test 3 -lshd pid: 4053074 +lshd pid: 937220 Hello world. PASS: lsh-3 lsh, test 4 -lshd pid: 4053909 +lshd pid: 937407 Hello world PASS: lsh-4 lsh, test 5, using an RSA hostkey -lshd pid: 4054931 +lshd pid: 937564 PASS: lsh-5 lsh, test 6, using various encryption algorithms -lshd pid: 4056394 +lshd pid: 937701 Trying encryption flag arcfour Ok Trying encryption flag twofish @@ -5550,62 +5584,60 @@ Ok PASS: lsh-6 lsh, test 7 -lshd pid: 4058049 +lshd pid: 937855 PASS: lsh-7 lsh, test 8, unencrypted session -lshd pid: 4058800 +lshd pid: 937997 PASS: lsh-8 lsh, test 9, check that LSHFLAGS works. -lshd pid: 4059589 +lshd pid: 938182 PASS: lsh-9 lsh, encrypted key test xxxxxx xxxxxx -lshd pid: 4062482 +lshd pid: 938770 Hello world PASS: lsh-encrypted-key lsh-decrypt-key-test xxxxxx xxxxxx - PASS: lsh-decrypt-key lsh, cat test -lshd pid: 4063361 +lshd pid: 939045 lsh-cat-test: Ok, files match. PASS: lsh-cat lshg test 1 -lshd pid: 4064171 +lshd pid: 939261 PASS: lshg-1 lshg, cat test -lshd pid: 4064869 +lshd pid: 939507 lshg-cat-test: Ok, files match. PASS: lshg-cat lshg, cat 2 test -lshd pid: 4065844 +lshd pid: 939665 lshg-cat-2-test: Ok, files match. PASS: lshg-cat-2 Closed spurious fd 9 -lshd pid: 4066720 +lshd pid: 939876 daemon-fd-test: Ok, files match. PASS: daemon-fd -lshd pid: 4067375 +lshd pid: 940219 foo PASS: tcpip-local -lshd pid: 4068024 +lshd pid: 940636 bar PASS: tcpip-local-in-use -lshd pid: 4068591 +lshd pid: 940847 foo PASS: tcpip-remote SKIP: socks5 SKIP: socks4 -lshd pid: 4072111 +lshd pid: 942478 foo -./lshg-tcpip-local-test: 1: kill: No such process - +/build/lsh-utils-2.1/src/testsuite/functions.sh: line 44: kill: (942534) - No such process PASS: lshg-tcpip-local testing lcp -lshd pid: 4072666 +lshd pid: 942680 bash: line 1: files/lcp-file-1.txt: cannot overwrite existing file bash: line 1: files/lcp-file-1.txt: cannot overwrite existing file /build/lsh-utils-2.1/src/testsuite/../lcp: line 116: ./lcp-file-1.txt: cannot overwrite existing file @@ -6282,7 +6314,7 @@ Test done PASS: rapid7-lsh Testing lshd -lshd pid: 4081406 +lshd pid: 945754 Testing /build/lsh-utils-2.1/src/testsuite/rapid7-ssh-pdu/0000001.pdu Testing /build/lsh-utils-2.1/src/testsuite/rapid7-ssh-pdu/0000002.pdu Testing /build/lsh-utils-2.1/src/testsuite/rapid7-ssh-pdu/0000003.pdu @@ -6952,7 +6984,7 @@ Test done PASS: rapid7-lshd lsh, test login, login-auth-mode -lshd pid: 4084448 +lshd pid: 947475 lsh-login-test: Ok, files match. PASS: login-auth lshd, no-auth-test @@ -6960,7 +6992,7 @@ Try `lshd --help' or `lshd --usage' for more information. PASS: lshd-no-auth Testing lshd with random input -lshd pid: 4084983 +lshd pid: 948421 Trying seed 1 Trying seed 2 Trying seed 3 @@ -7175,9 +7207,9 @@ dh_md5sums -a dh_builddeb -a dpkg-deb: building package 'lsh-utils' in '../lsh-utils_2.1-13_amd64.deb'. -dpkg-deb: building package 'lsh-client' in '../lsh-client_2.1-13_amd64.deb'. dpkg-deb: building package 'lsh-utils-dbgsym' in '../lsh-utils-dbgsym_2.1-13_amd64.deb'. dpkg-deb: building package 'lsh-server-dbgsym' in '../lsh-server-dbgsym_2.1-13_amd64.deb'. +dpkg-deb: building package 'lsh-client' in '../lsh-client_2.1-13_amd64.deb'. dpkg-deb: building package 'lsh-client-dbgsym' in '../lsh-client-dbgsym_2.1-13_amd64.deb'. dpkg-deb: building package 'lsh-server' in '../lsh-server_2.1-13_amd64.deb'. dh_testdir @@ -7212,12 +7244,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/922719/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/922719/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/4013720 and its subdirectories -I: Current time: Wed Dec 29 07:16:51 -12 2021 -I: pbuilder-time-stamp: 1640805411 +I: removing directory /srv/workspace/pbuilder/922719 and its subdirectories +I: Current time: Wed Feb 1 15:44:50 +14 2023 +I: pbuilder-time-stamp: 1675215890