summaryrefslogtreecommitdiff
path: root/tprintf.h
blob: b2ca69ea6c327db8b2928174555e3d9186f4fc5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef TPRINTF_H
#define TPRINTF_H

#include "built_in.h"
#include "colors.h"
#include "colorize.h"

extern void tprintf_init(void);
extern void tprintf(char *msg, ...) __check_format_printf(1, 2);
extern void tprintf_flush(void);
extern void tprintf_cleanup(void);

extern void tputchar_safe(int c);
extern void tputs_safe(const char *str, size_t len);

#define DEFAULT_TTY_SIZE	80

#endif /* TPRINTF_H */
ble summary='commit info' class='commit-info'> authorTom Lendacky <thomas.lendacky@amd.com>2016-04-13 10:52:25 -0500 committerHerbert Xu <herbert@gondor.apana.org.au>2016-04-15 22:13:56 +0800 commitf709b45ec461b548c41a00044dba1f1b572783bf (patch) tree8bf82dcdad57d141c1ff585865bff2ced1fc7c6a /.mailmap parent0851561d9c965df086ef8a53f981f5f95a57c2c8 (diff)
crypto: ccp - Prevent information leakage on export
Prevent information from leaking to userspace by doing a memset to 0 of the export state structure before setting the structure values and copying it. This prevents un-initialized padding areas from being copied into the export area. Cc: <stable@vger.kernel.org> # 3.14.x- Reported-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '.mailmap')