Please STOP posting all warnings you see to the bugtracker. Use gnupg-devel is
you have questions. Thanks.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
All Stories
Mar 10 2015
We need more information to triage this bug.
So what is the bug here? See also the long discussions every few years on
cryptography regading disabling of optimization.
The first warning: The function is pretty short:
void
http_start_data (http_t hd)
{
if (!hd->in_data)
{
es_fputs ("\r\n", hd->fp_write);
es_fflush (hd->fp_write);
hd->in_data = 1;
}
else
es_fflush (hd->fp_write);
}I do not understand how your analzyer gets to the conclusion that hd == NULL?
On the second warning:
Please view that in context:
/* Append a new header. */
h = xtrymalloc (sizeof *h + strlen (line));
if (!h)
return gpg_err_code_from_syserror ();
strcpy (h->name, line);How should that overflow a buffer? It has just been allocated - also check the
definition of the struct used for h.
Mar 9 2015
Patch still needs to be applied upstream but this is tracked in another issue.
-> Resolved
Mar 6 2015
Changed status to 'unread'. I'm not chatting.
I was able to duplicate Bug 1862: Building static GnuPG 2.1.2 fails due to
multiply defined symbols.
/home/jwalton/Desktop/gcrypt-2.0-analyze/libgpg-error-1.18/src/visibility.c:46:
multiple definition of `gpg_err_code_from_errno'
t-support.o:/home/jwalton/Desktop/gcrypt-2.0-analyze/gnupg-2.1.2/common/t-support.c:137:
first defined here
/home/jwalton/gpg-analyze/lib/libgpg-error.a(libgpg_error_la-visibility.o): In
function `gpg_err_code_from_syserror':
/home/jwalton/Desktop/gcrypt-2.0-analyze/libgpg-error-1.18/src/visibility.c:58:
multiple definition of `gpg_err_code_from_syserror'
t-support.o:/home/jwalton/Desktop/gcrypt-2.0-analyze/gnupg-2.1.2/common/t-support.c:151:
first defined here
collect2: error: ld returned 1 exit status
make[3]: * [t-stringhelp] Error 1
make[3]: Leaving directory
`/home/jwalton/Desktop/gcrypt-2.0-analyze/gnupg-2.1.2/common'
make[2]: * [all] Error 2
make[2]: Leaving directory
`/home/jwalton/Desktop/gcrypt-2.0-analyze/gnupg-2.1.2/common'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/home/jwalton/Desktop/gcrypt-2.0-analyze/gnupg-2.1.2'
make: * [all] Error 2
LIBRARY=gnupg
VERSION=2.1.2
FILE="$LIBRARY-$VERSION"
export PREFIX=/usr/local
cd "$FILE"
./configure --enable-static --disable-shared
--with-libgpg-error-prefix="$PREFIX" --with-libassuan-prefix="$PREFIX"
--with-ksba-prefix="$PREFIX" --with-npth-prefix="$PREFIX"
--with-libgcrypt-prefix="$PREFIX" --prefix="$PREFIX"
make
Changed status to 'unread'. I am not chatting.
Also see "Is a misaligned load due to a cast undefined behavior?"
(http://stackoverflow.com/q/28893303) on Stack Overflow.
I wanted to verify it was in fact undefined behavior.
Changed status to 'unread'. I'm not chatting.
Changed status to 'unread'. I'm not chatting.