From 5e248cc4e37a388aed8b14c88be92c2805de0256 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Wed, 28 May 2014 18:58:59 +0000 Subject: Rewrite string template formatting to be format-injection proof. --- src/htstools.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/htstools.h') diff --git a/src/htstools.h b/src/htstools.h index 5542682..7198fef 100644 --- a/src/htstools.h +++ b/src/htstools.h @@ -60,7 +60,9 @@ void longfile_to_83(int mode, char *n83, char *save); HTS_INLINE int __rech_tageq(const char *adr, const char *s); HTS_INLINE int __rech_tageqbegdigits(const char *adr, const char *s); HTS_INLINE int rech_tageq_all(const char *adr, const char *s); + int hts_template_format(FILE *const out, const char *format, ...); +int hts_template_format_str(char *buffer, size_t size, const char *format, ...); #define rech_tageq(adr,s) \ ( \ -- cgit v1.2.3