summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8fa8761)
(borrowed) base64 encoder apparently uses one byte more than the formula
for base64 encoded size shows. This smashed a local variable, which was
not used afterwards and did not cause problems, but triggered stack
smash detector if the caller was compiled to use it.
oldmask = umask(077);
if ((fp = fopen(nfn, "w"))) {
oldmask = umask(077);
if ((fp = fopen(nfn, "w"))) {
- int bsize = ((ao.datasize-1)/3+1)*4+1;
+ int bsize = ((ao.datasize-1)/3+1)*4+2; /* why +2 ??? */
char *b64 = alloca(bsize);
if (b64_encode(ao.data, ao.datasize, b64, &bsize)) {
char *b64 = alloca(bsize);
if (b64_encode(ao.data, ao.datasize, b64, &bsize)) {
dnl Process this file with autoconf to produce a configure script.
dnl Process this file with autoconf to produce a configure script.
-AC_INIT([pam_pcsc_cr], 0.9.5)
+AC_INIT([pam_pcsc_cr], 0.9.6)
AC_CONFIG_SRCDIR([pam_pcsc_cr.c])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([pam_pcsc_cr.c])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
if test "X$CC" = "Xgcc"; then
CFLAGS="$CFLAGS -Wall"
fi
if test "X$CC" = "Xgcc"; then
CFLAGS="$CFLAGS -Wall"
fi
+dnl -fstack-protector-all -fsanitize=address
AC_PROG_MAKE_SET
AC_SUBST(PROGS)dnl
AC_PROG_MAKE_SET
AC_SUBST(PROGS)dnl