mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-11 21:48:50 +01:00
f19ff78f0f
* common/asshelp2.c (vprint_assuan_status_strings): New. (print_assuan_status_strings): New. * agent/command.c (agent_write_status): Replace by call to new function. * dirmngr/server.c (dirmngr_status): Ditto. * g13/server.c (g13_status): Ditto. * g13/sh-cmd.c (g13_status): Ditto. * sm/server.c (gpgsm_status2): Ditto. * scd/command.c (send_status_info): Bump up N. -- This fixes a potential overflow if LFs are passed to the status string functions. This is actually not the case and would be wrong because neither the truncating in libassuan or our escaping is not the Right Thing. In any case the functions need to be more robust and comply to the promised interface. Thus the code has been factored out to a helper function and N has been bumped up correctly and checked in all cases. For some uses this changes the behaviour in the error case (i.e. CR or LF passed): It will now always be C-escaped and not passed to libassuan which would truncate the line at the first LF. Reported-by: private_pers |
||
---|---|---|
.. | ||
all-tests.scm | ||
backend.c | ||
backend.h | ||
be-dmcrypt.c | ||
be-dmcrypt.h | ||
be-encfs.c | ||
be-encfs.h | ||
be-truecrypt.c | ||
be-truecrypt.h | ||
call-syshelp.c | ||
call-syshelp.h | ||
ChangeLog-2011 | ||
create.c | ||
create.h | ||
encfs-1.5_annotate.diff | ||
encfs-1.7.3_annotate.diff | ||
g13-common.c | ||
g13-common.h | ||
g13-syshelp.c | ||
g13-syshelp.h | ||
g13.c | ||
g13.h | ||
g13tuple.c | ||
g13tuple.h | ||
keyblob.c | ||
keyblob.h | ||
Makefile.am | ||
mount.c | ||
mount.h | ||
mountinfo.c | ||
mountinfo.h | ||
runner.c | ||
runner.h | ||
server.c | ||
server.h | ||
sh-blockdev.c | ||
sh-cmd.c | ||
sh-dmcrypt.c | ||
suspend.c | ||
suspend.h | ||
t-g13tuple.c |