From 9bcfd3a47da540abeb2da06471cf2fa11c14db49 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 1 Nov 2009 15:37:16 +0100 Subject: text_file: allocate line buffers dynamically Use a single GString buffer object in all functions loading the database. Enlarge it automatically for long lines. This eliminates the maximum line length for tag values. There is still an upper limit of 512 kB to prevent denial of service, but that's reasonable I guess. --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 4cbe6774d..d7167a4cc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -88,6 +88,7 @@ mpd_headers = \ src/input/file_input_plugin.h \ src/input/curl_input_plugin.h \ src/input/mms_input_plugin.h \ + src/text_file.h \ src/text_input_stream.h \ src/icy_server.h \ src/icy_metadata.h \ @@ -285,6 +286,7 @@ src_mpd_SOURCES = \ src/tag_print.c \ src/tag_save.c \ src/tokenizer.c \ + src/text_file.c \ src/text_input_stream.c \ src/strset.c \ src/uri.c \ -- cgit v1.2.3