├── fuzzing ├── .gitignore └── minidlna-1.3.0 │ ├── minidlna-1.3.0 │ ├── ChangeLog │ ├── tagutils │ │ ├── .dirstamp │ │ ├── tagutils-pcm.h │ │ ├── tagutils-dff.h │ │ ├── tagutils-ogg.h │ │ ├── tagutils-dsf.h │ │ ├── tagutils-flc.h │ │ ├── tagutils-wav.h │ │ ├── tagutils-aac.h │ │ ├── tagutils-pcm.c │ │ └── tagutils-mp3.h │ ├── po │ │ ├── POTFILES.in │ │ ├── LINGUAS │ │ ├── Makevars │ │ ├── ko.po │ │ ├── ja.po │ │ ├── nb.po │ │ ├── da.po │ │ ├── sv.po │ │ ├── nl.po │ │ ├── es.po │ │ ├── fr.po │ │ ├── it.po │ │ └── minidlna.pot │ ├── AUTHORS │ ├── fuzzer_http │ ├── TODO │ ├── avahi.h │ ├── monitor.h │ ├── .gitignore │ ├── codelength.h │ ├── README │ ├── tivo_commands.h │ ├── playlist.h │ ├── albumart.h │ ├── uuid.h │ ├── event.h │ ├── containers.h │ ├── tivo_beacon.h │ ├── tivo_utils.h │ ├── LICENCE.miniupnpd │ ├── sql.h │ ├── autogen.sh │ ├── image_utils.h │ ├── upnpsoap.h │ ├── log.h │ ├── linux │ │ ├── minidlna.init.d.script.tmpl │ │ └── inotify-syscalls.h │ ├── sendfile.h │ ├── minissdp.h │ ├── getifaddr.h │ ├── minidlnad.8 │ ├── minidlnapath.h │ ├── scanner.h │ ├── Makefile.am │ ├── minixml.h │ ├── upnpreplyparse.h │ └── scanner_sqlite.h │ ├── patch.sh │ ├── minidlna-1.3.0.tar │ ├── deps.sh │ ├── README.md │ ├── Makefile │ ├── fuzzers │ └── fuzz_http_libfuzzer.c │ ├── xml.dict │ ├── http.dict │ └── patches │ └── upnphttp-fix.patch ├── src ├── minidlna-git │ ├── ChangeLog │ ├── tagutils │ │ ├── .dirstamp │ │ ├── tagutils-pcm.h │ │ ├── tagutils-dff.h │ │ ├── tagutils-ogg.h │ │ ├── tagutils-dsf.h │ │ ├── tagutils-flc.h │ │ ├── tagutils-wav.h │ │ ├── tagutils-aac.h │ │ ├── tagutils-pcm.c │ │ └── tagutils-mp3.h │ ├── po │ │ ├── POTFILES.in │ │ ├── LINGUAS │ │ ├── Makevars │ │ ├── ko.po │ │ ├── ja.po │ │ ├── nb.po │ │ ├── da.po │ │ ├── sv.po │ │ ├── nl.po │ │ ├── es.po │ │ ├── fr.po │ │ ├── it.po │ │ └── minidlna.pot │ ├── AUTHORS │ ├── buildroot │ │ ├── external.desc │ │ ├── Config.in │ │ ├── external.mk │ │ ├── build-static.sh │ │ ├── readymedia │ │ │ ├── Config.in │ │ │ └── readymedia.mk │ │ └── readymedia_defconfig │ ├── TODO │ ├── avahi.h │ ├── monitor.h │ ├── .gitignore │ ├── codelength.h │ ├── README │ ├── tivo_commands.h │ ├── playlist.h │ ├── albumart.h │ ├── uuid.h │ ├── event.h │ ├── containers.h │ ├── tivo_beacon.h │ ├── tivo_utils.h │ ├── LICENCE.miniupnpd │ ├── sql.h │ ├── autogen.sh │ ├── image_utils.h │ ├── upnpsoap.h │ ├── log.h │ ├── linux │ │ ├── minidlna.init.d.script.tmpl │ │ └── inotify-syscalls.h │ ├── sendfile.h │ ├── minissdp.h │ ├── getifaddr.h │ ├── minidlnad.8 │ ├── minidlnapath.h │ ├── scanner.h │ ├── Makefile.am │ ├── minixml.h │ ├── upnpreplyparse.h │ ├── scanner_sqlite.h │ └── upnpevents.h └── deps.sh ├── exploits ├── .gitignore ├── requirements.txt └── README.md └── README.md /fuzzing/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/minidlna-git/ChangeLog: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /exploits/.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | -------------------------------------------------------------------------------- /exploits/requirements.txt: -------------------------------------------------------------------------------- 1 | pwntools 2 | -------------------------------------------------------------------------------- /src/minidlna-git/tagutils/.dirstamp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/ChangeLog: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/minidlna-git/po/POTFILES.in: -------------------------------------------------------------------------------- 1 | scanner.c 2 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tagutils/.dirstamp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/POTFILES.in: -------------------------------------------------------------------------------- 1 | scanner.c 2 | -------------------------------------------------------------------------------- /src/minidlna-git/po/LINGUAS: -------------------------------------------------------------------------------- 1 | da de es fr it ja ko nb nl pl ru sl sv 2 | -------------------------------------------------------------------------------- /src/minidlna-git/AUTHORS: -------------------------------------------------------------------------------- 1 | Justin Maggard 2 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/LINGUAS: -------------------------------------------------------------------------------- 1 | da de es fr it ja ko nb nl pl ru sl sv 2 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/AUTHORS: -------------------------------------------------------------------------------- 1 | Justin Maggard 2 | -------------------------------------------------------------------------------- /src/minidlna-git/buildroot/external.desc: -------------------------------------------------------------------------------- 1 | name: READYMEDIA 2 | desc: ReadyMedia external tree 3 | -------------------------------------------------------------------------------- /src/minidlna-git/buildroot/Config.in: -------------------------------------------------------------------------------- 1 | source "$BR2_EXTERNAL_READYMEDIA_PATH/readymedia/Config.in" 2 | -------------------------------------------------------------------------------- /src/minidlna-git/buildroot/external.mk: -------------------------------------------------------------------------------- 1 | include $(sort $(wildcard $(BR2_EXTERNAL_READYMEDIA_PATH)/*/*.mk)) 2 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/patch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | patch -ruN -p1 -d ./minidlna-1.3.0 --verbose < patches/upnphttp-fix.patch 4 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mellow-hype/cve-2023-33476/HEAD/fuzzing/minidlna-1.3.0/minidlna-1.3.0.tar -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/fuzzer_http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mellow-hype/cve-2023-33476/HEAD/fuzzing/minidlna-1.3.0/minidlna-1.3.0/fuzzer_http -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/deps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sudo apt update 3 | sudo apt install -y libavformat-dev libjpeg-dev libsqlite3-dev libexif-dev libogg-dev libvorbis-dev libid3tag0-dev libflac-dev 4 | -------------------------------------------------------------------------------- /src/deps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sudo apt update 3 | sudo apt install autopoint autoconf 4 | sudo apt install -y libavformat-dev libjpeg-dev libsqlite3-dev libexif-dev libogg-dev libvorbis-dev libid3tag0-dev libflac-dev 5 | -------------------------------------------------------------------------------- /src/minidlna-git/TODO: -------------------------------------------------------------------------------- 1 | Things left to do: 2 | 3 | * Persistent HTTP connection (Keep-Alive) support 4 | * PNG image support 5 | * SortCriteria support 6 | * Upload support 7 | 8 | Wishlist: 9 | * Transcoding 10 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/TODO: -------------------------------------------------------------------------------- 1 | Things left to do: 2 | 3 | * Persistent HTTP connection (Keep-Alive) support 4 | * PNG image support 5 | * SortCriteria support 6 | * Upload support 7 | 8 | Wishlist: 9 | * Transcoding 10 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/README.md: -------------------------------------------------------------------------------- 1 | 2 | This directory contains the fuzzing harnesses and modified source code that was used to fuzz 3 | minidlna and find this bug. 4 | 5 | Building: 6 | ``` 7 | tar xf minidlna-1.3.0.tar 8 | ./patch.sh 9 | make all 10 | ``` 11 | -------------------------------------------------------------------------------- /src/minidlna-git/avahi.h: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | 3 | #if defined(TIVO_SUPPORT) && defined(HAVE_AVAHI) 4 | void tivo_bonjour_register(void); 5 | void tivo_bonjour_unregister(void); 6 | #else 7 | static inline void tivo_bonjour_register(void) {}; 8 | static inline void tivo_bonjour_unregister(void) {}; 9 | #endif 10 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/avahi.h: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | 3 | #if defined(TIVO_SUPPORT) && defined(HAVE_AVAHI) 4 | void tivo_bonjour_register(void); 5 | void tivo_bonjour_unregister(void); 6 | #else 7 | static inline void tivo_bonjour_register(void) {}; 8 | static inline void tivo_bonjour_unregister(void) {}; 9 | #endif 10 | -------------------------------------------------------------------------------- /src/minidlna-git/buildroot/build-static.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | if [ $# -ne 1 ]; then 3 | echo "Usage: $0 " 4 | exit 1 5 | fi 6 | BUILDROOT_DIR=$1 7 | BR2_DEFCONFIG=$(realpath readymedia_defconfig) 8 | export BR2_EXTERNAL=$(realpath .) 9 | cd $BUILDROOT_DIR 10 | make O=output-readymedia defconfig BR2_DEFCONFIG=${BR2_DEFCONFIG} 11 | make O=output-readymedia 12 | echo -e "\n\nStatic binary built in $(realpath output/target/usr/sbin/minidlnad)" 13 | ls -lh $(realpath output/target/usr/sbin/minidlnad) 14 | -------------------------------------------------------------------------------- /src/minidlna-git/monitor.h: -------------------------------------------------------------------------------- 1 | int monitor_insert_file(const char *name, const char *path); 2 | int monitor_insert_directory(int fd, char *name, const char * path); 3 | int monitor_remove_file(const char * path); 4 | int monitor_remove_directory(int fd, const char * path); 5 | 6 | #if defined(HAVE_INOTIFY) || defined(HAVE_KQUEUE) 7 | #define HAVE_WATCH 1 8 | int monitor_add_watch(int, const char *); 9 | int monitor_remove_watch(int, const char *); 10 | void monitor_start(); 11 | void monitor_stop(); 12 | #endif 13 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/monitor.h: -------------------------------------------------------------------------------- 1 | int monitor_insert_file(const char *name, const char *path); 2 | int monitor_insert_directory(int fd, char *name, const char * path); 3 | int monitor_remove_file(const char * path); 4 | int monitor_remove_directory(int fd, const char * path); 5 | 6 | #if defined(HAVE_INOTIFY) || defined(HAVE_KQUEUE) 7 | #define HAVE_WATCH 1 8 | int add_watch(int, const char *); 9 | #endif 10 | 11 | #ifdef HAVE_INOTIFY 12 | void * 13 | start_inotify(); 14 | #endif 15 | 16 | #ifdef HAVE_KQUEUE 17 | void kqueue_monitor_start(); 18 | #endif 19 | -------------------------------------------------------------------------------- /src/minidlna-git/.gitignore: -------------------------------------------------------------------------------- 1 | ABOUT-NLS 2 | INSTALL 3 | Makefile.in 4 | Makefile 5 | aclocal.m4 6 | autom4te.cache/ 7 | config.guess 8 | config.h.in 9 | config.rpath 10 | config.sub 11 | config.status 12 | config.log 13 | config.h 14 | confdefs.h 15 | conftest.* 16 | configure 17 | depcomp 18 | install-sh 19 | m4/ 20 | missing 21 | mkinstalldirs 22 | po/Makefile.in.in 23 | po/Makevars.template 24 | po/Rules-quot 25 | po/boldquot.sed 26 | po/en@boldquot.header 27 | po/en@quot.header 28 | po/insert-header.sin 29 | po/quot.sed 30 | po/remove-potcdate.sin 31 | po/Makefile 32 | po/POTFILES 33 | po/*.gmo 34 | po/stamp-po 35 | stamp-h1 36 | .deps/ 37 | *.o 38 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/.gitignore: -------------------------------------------------------------------------------- 1 | ABOUT-NLS 2 | INSTALL 3 | Makefile.in 4 | Makefile 5 | aclocal.m4 6 | autom4te.cache/ 7 | config.guess 8 | config.h.in 9 | config.rpath 10 | config.sub 11 | config.status 12 | config.log 13 | config.h 14 | confdefs.h 15 | conftest.* 16 | configure 17 | depcomp 18 | install-sh 19 | m4/ 20 | missing 21 | mkinstalldirs 22 | po/Makefile.in.in 23 | po/Makevars.template 24 | po/Rules-quot 25 | po/boldquot.sed 26 | po/en@boldquot.header 27 | po/en@quot.header 28 | po/insert-header.sin 29 | po/quot.sed 30 | po/remove-potcdate.sin 31 | po/Makefile 32 | po/POTFILES 33 | po/*.gmo 34 | po/stamp-po 35 | stamp-h1 36 | .deps/ 37 | *.o 38 | -------------------------------------------------------------------------------- /src/minidlna-git/buildroot/readymedia/Config.in: -------------------------------------------------------------------------------- 1 | config BR2_PACKAGE_READYMEDIA 2 | bool "readymedia" 3 | depends on BR2_USE_WCHAR # flac 4 | depends on BR2_USE_MMU # fork 5 | depends on BR2_TOOLCHAIN_HAS_THREADS 6 | depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS 7 | select BR2_PACKAGE_FFMPEG 8 | select BR2_PACKAGE_FLAC 9 | select BR2_PACKAGE_LIBVORBIS # selects libogg 10 | select BR2_PACKAGE_LIBOGG 11 | select BR2_PACKAGE_LIBID3TAG # selects zlib 12 | select BR2_PACKAGE_LIBEXIF 13 | select BR2_PACKAGE_JPEG 14 | select BR2_PACKAGE_SQLITE 15 | help 16 | MiniDLNA (aka ReadyDLNA) is server software with the aim of 17 | being fully compliant with DLNA/UPnP-AV clients. 18 | 19 | http://minidlna.sourceforge.net/ 20 | 21 | comment "readymedia needs a toolchain w/ threads, wchar" 22 | depends on BR2_USE_MMU 23 | depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS 24 | depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR 25 | -------------------------------------------------------------------------------- /src/minidlna-git/codelength.h: -------------------------------------------------------------------------------- 1 | /* Project : miniupnp 2 | * Author : Thomas BERNARD 3 | * copyright (c) 2005-2008 Thomas Bernard 4 | * This software is subjet to the conditions detailed in the 5 | * provided LICENCE file. */ 6 | #ifndef __CODELENGTH_H__ 7 | #define __CODELENGTH_H__ 8 | 9 | /* Encode length by using 7bit per Byte : 10 | * Most significant bit of each byte specifies that the 11 | * following byte is part of the code */ 12 | #define DECODELENGTH(n, p) n = 0; \ 13 | do { n = (n << 7) | (*p & 0x7f); } \ 14 | while(*(p++)&0x80); 15 | 16 | #define CODELENGTH(n, p) if(n>=268435456) *(p++) = (n >> 28) | 0x80; \ 17 | if(n>=2097152) *(p++) = (n >> 21) | 0x80; \ 18 | if(n>=16384) *(p++) = (n >> 14) | 0x80; \ 19 | if(n>=128) *(p++) = (n >> 7) | 0x80; \ 20 | *(p++) = n & 0x7f; 21 | 22 | #endif 23 | 24 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/codelength.h: -------------------------------------------------------------------------------- 1 | /* Project : miniupnp 2 | * Author : Thomas BERNARD 3 | * copyright (c) 2005-2008 Thomas Bernard 4 | * This software is subjet to the conditions detailed in the 5 | * provided LICENCE file. */ 6 | #ifndef __CODELENGTH_H__ 7 | #define __CODELENGTH_H__ 8 | 9 | /* Encode length by using 7bit per Byte : 10 | * Most significant bit of each byte specifies that the 11 | * following byte is part of the code */ 12 | #define DECODELENGTH(n, p) n = 0; \ 13 | do { n = (n << 7) | (*p & 0x7f); } \ 14 | while(*(p++)&0x80); 15 | 16 | #define CODELENGTH(n, p) if(n>=268435456) *(p++) = (n >> 28) | 0x80; \ 17 | if(n>=2097152) *(p++) = (n >> 21) | 0x80; \ 18 | if(n>=16384) *(p++) = (n >> 14) | 0x80; \ 19 | if(n>=128) *(p++) = (n >> 7) | 0x80; \ 20 | *(p++) = n & 0x7f; 21 | 22 | #endif 23 | 24 | -------------------------------------------------------------------------------- /src/minidlna-git/buildroot/readymedia/readymedia.mk: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # 3 | # readymedia 4 | # 5 | ################################################################################ 6 | 7 | READYMEDIA_VERSION = v1_3_1 8 | READYMEDIA_SITE = https://git.code.sf.net/p/minidlna/git 9 | READYMEDIA_SITE_METHOD = git 10 | READYMEDIA_LICENSE = GPL-2.0, BSD-3-Clause 11 | READYMEDIA_LICENSE_FILES = COPYING LICENCE.miniupnpd 12 | READYMEDIA_CPE_ID_VENDOR = readymedia_project 13 | READYMEDIA_CPE_ID_PRODUCT = readymedia 14 | 15 | READYMEDIA_DEPENDENCIES = \ 16 | $(TARGET_NLS_DEPENDENCIES) \ 17 | ffmpeg flac libvorbis libogg libid3tag libexif jpeg sqlite \ 18 | host-xutil_makedepend 19 | 20 | READYMEDIA_CONF_OPTS = \ 21 | --enable-static \ 22 | --enable-tivo \ 23 | --enable-lto 24 | 25 | define READYMEDIA_RUN_AUTOGEN 26 | cd $(@D) && PATH=$(BR_PATH) ./autogen.sh 27 | endef 28 | READYMEDIA_PRE_CONFIGURE_HOOKS = READYMEDIA_RUN_AUTOGEN 29 | 30 | $(eval $(autotools-package)) 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CVE-2023-33476 2 | 3 | > ReadyMedia (MiniDLNA) versions from 1.1.15 up to 1.3.2 is vulnerable to Buffer Overflow. The vulnerability is caused by incorrect validation logic when handling HTTP requests using chunked transport encoding. This results in other code later using attacker-controlled chunk values that exceed the length of the allocated buffer, resulting in out-of-bounds read/write. 4 | 5 | - [Root Cause Analysis](https://blog.coffinsec.com/0day/2023/05/31/minidlna-heap-overflow-rca.html) 6 | - [Exploit Details](https://blog.coffinsec.com/0day/2023/06/19/minidlna-cve-2023-33476-exploits.html) 7 | - [NIST CVE Entry](https://nvd.nist.gov/vuln/detail/CVE-2023-33476) 8 | 9 | ## exploits 10 | 11 | - RCE via tcache poisoning+GOT overwrite exploit for x86-64 target 12 | - RCE via tcache poisoning+RIP overwrite exploit for arm32 target (Netgear RAX30) 13 | 14 | ## fuzzing 15 | 16 | - source code dir tweaked for fuzzing 17 | - libfuzzer harnesses used to find the bug 18 | 19 | ## src 20 | vulnerable source code that can be built to reproduce/test exploits 21 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/Makefile: -------------------------------------------------------------------------------- 1 | # Basic flags 2 | CC := clang 3 | CFLAGS = -g -O0 4 | LIBS := -lsqlite3 -lexif -ljpeg -lvorbis -lavformat -lavutil -logg -lid3tag -lFLAC 5 | 6 | BASEDIR = . 7 | SRCDIR = $(BASEDIR)/minidlna-1.3.0 8 | FUZZSRC = $(BASEDIR)/fuzzers 9 | SRCS := $(wildcard $(SRCDIR)/*.c) 10 | SRCS += $(wildcard $(SRCDIR)/tagutils/*.c) 11 | 12 | all: config fuzz_http 13 | 14 | clean: 15 | cd $(SRCDIR); make clean 16 | 17 | ################################################## 18 | # LIBFUZZER BUILD 19 | # Build the minidlna source to create the required object files 20 | fuzz_http: CFLAGS += -fsanitize=fuzzer,address 21 | config: $(SRCS) 22 | cd $(SRCDIR); \ 23 | ./configure CC=$(CC) CFLAGS="$(CFLAGS)"; \ 24 | make clean; cp minidlna.c minidlna.c.ORIG 25 | 26 | fuzz_http: CFLAGS += -fsanitize=fuzzer,address 27 | fuzz_http: 28 | cp $(FUZZSRC)/fuzz_harness.c $(SRCDIR)/minidlna.c 29 | cd $(SRCDIR); make CC=$(CC) CFLAGS="$(CFLAGS)" minidlnad 30 | cp $(SRCDIR)/minidlnad $(SRCDIR)/fuzzer_http 31 | 32 | ################################################## 33 | 34 | -------------------------------------------------------------------------------- /src/minidlna-git/README: -------------------------------------------------------------------------------- 1 | MiniDLNA project 2 | (c) 2009 Justin Maggard 3 | Portions (c) 2006-2007 Thomas Bernard 4 | webpage: http://sourceforge.net/projects/minidlna/ 5 | 6 | This directory contains the MiniDLNA daemon software. 7 | This software is subject to the conditions detailed in 8 | the LICENCE file provided with this distribution. 9 | 10 | Parts of the software including the discovery code are 11 | licensed under the BSD revised license which is detailed 12 | in the LICENSE.miniupnpd file provided with the distribution. 13 | More information on MiniUPnPd can be found at http://miniupnp.free.fr. 14 | 15 | 16 | The MiniDLNA daemon is an UPnP-A/V and DLNA service which 17 | serves multimedia content to compatible clients on the network. 18 | See http://www.upnp.org/ for more details on UPnP 19 | and http://www.dlna.org/ for mode details on DLNA. 20 | 21 | Prerequisites 22 | ================== 23 | 24 | - libexif 25 | - libjpeg 26 | - libid3tag 27 | - libFLAC 28 | - libvorbis 29 | - libsqlite3 30 | - libavformat (the ffmpeg libraries) 31 | 32 | 33 | Justin Maggard 34 | -------------------------------------------------------------------------------- /src/minidlna-git/tivo_commands.h: -------------------------------------------------------------------------------- 1 | /* TiVo command processing 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #include "config.h" 25 | #ifdef TIVO_SUPPORT 26 | 27 | void 28 | ProcessTiVoCommand(struct upnphttp *h, const char *orig_path); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/README: -------------------------------------------------------------------------------- 1 | MiniDLNA project 2 | (c) 2009 Justin Maggard 3 | Portions (c) 2006-2007 Thomas Bernard 4 | webpage: http://sourceforge.net/projects/minidlna/ 5 | 6 | This directory contains the MiniDLNA daemon software. 7 | This software is subject to the conditions detailed in 8 | the LICENCE file provided with this distribution. 9 | 10 | Parts of the software including the discovery code are 11 | licensed under the BSD revised license which is detailed 12 | in the LICENSE.miniupnpd file provided with the distribution. 13 | More information on MiniUPnPd can be found at http://miniupnp.free.fr. 14 | 15 | 16 | The MiniDLNA daemon is an UPnP-A/V and DLNA service which 17 | serves multimedia content to compatible clients on the network. 18 | See http://www.upnp.org/ for more details on UPnP 19 | and http://www.dlna.org/ for mode details on DLNA. 20 | 21 | Prerequisites 22 | ================== 23 | 24 | - libexif 25 | - libjpeg 26 | - libid3tag 27 | - libFLAC 28 | - libvorbis 29 | - libsqlite3 30 | - libavformat (the ffmpeg libraries) 31 | 32 | 33 | Justin Maggard 34 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tivo_commands.h: -------------------------------------------------------------------------------- 1 | /* TiVo command processing 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #include "config.h" 25 | #ifdef TIVO_SUPPORT 26 | 27 | void 28 | ProcessTiVoCommand(struct upnphttp *h, const char *orig_path); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/minidlna-git/playlist.h: -------------------------------------------------------------------------------- 1 | /* Playlist handling 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2008-2010 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #ifndef __PLAYLIST_H__ 25 | #define __PLAYLIST_H__ 26 | 27 | int insert_playlist(const char *path, const char *name); 28 | int fill_playlists(void); 29 | 30 | #endif // __PLAYLIST_H__ 31 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/playlist.h: -------------------------------------------------------------------------------- 1 | /* Playlist handling 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2008-2010 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #ifndef __PLAYLIST_H__ 25 | #define __PLAYLIST_H__ 26 | 27 | int insert_playlist(const char *path, const char *name); 28 | int fill_playlists(void); 29 | 30 | #endif // __PLAYLIST_H__ 31 | -------------------------------------------------------------------------------- /src/minidlna-git/tagutils/tagutils-pcm.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-pcm.h 3 | //========================================================================= 4 | // Copyright (c) 2009- NETGEAR, Inc. All Rights Reserved. 5 | //========================================================================= 6 | 7 | /* This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | static int _get_pcmfileinfo(char *file, struct song_metadata *psong); 22 | -------------------------------------------------------------------------------- /src/minidlna-git/albumart.h: -------------------------------------------------------------------------------- 1 | /* Album art extraction, caching, and scaling 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2008 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #ifndef __ALBUMART_H__ 25 | #define __ALBUMART_H__ 26 | 27 | void update_if_album_art(const char *path); 28 | int64_t find_album_art(const char *path, uint8_t *image_data, int image_size); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tagutils/tagutils-pcm.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-pcm.h 3 | //========================================================================= 4 | // Copyright (c) 2009- NETGEAR, Inc. All Rights Reserved. 5 | //========================================================================= 6 | 7 | /* This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | static int _get_pcmfileinfo(char *file, struct song_metadata *psong); 22 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/albumart.h: -------------------------------------------------------------------------------- 1 | /* Album art extraction, caching, and scaling 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2008 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #ifndef __ALBUMART_H__ 25 | #define __ALBUMART_H__ 26 | 27 | void update_if_album_art(const char *path); 28 | int64_t find_album_art(const char *path, uint8_t *image_data, int image_size); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/minidlna-git/tagutils/tagutils-dff.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-dff.h 3 | // DESCRIPTION : DFF metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2014 Takeshich NAKAMURA 6 | //========================================================================= 7 | 8 | /* 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program. If not, see . 21 | */ 22 | static int _get_dfffileinfo(char *file, struct song_metadata *psong); 23 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tagutils/tagutils-dff.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-dff.h 3 | // DESCRIPTION : DFF metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2014 Takeshich NAKAMURA 6 | //========================================================================= 7 | 8 | /* 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program. If not, see . 21 | */ 22 | static int _get_dfffileinfo(char *file, struct song_metadata *psong); 23 | -------------------------------------------------------------------------------- /src/minidlna-git/tagutils/tagutils-ogg.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-ogg.h 3 | // DESCRIPTION : Ogg metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved. 6 | //========================================================================= 7 | 8 | /* 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | static int _get_oggfileinfo(char *filename, struct song_metadata *psong); 24 | -------------------------------------------------------------------------------- /src/minidlna-git/uuid.h: -------------------------------------------------------------------------------- 1 | /* UUID generation functions 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #ifndef __UUID_H__ 25 | #define __UUID_H__ 26 | 27 | #define ETH_ALEN 6 28 | #ifndef NSEC_PER_SEC 29 | #define NSEC_PER_SEC 1000000000L 30 | #endif 31 | #ifndef NSEC_PER_MSEC 32 | #define NSEC_PER_MSEC 1000000L 33 | #endif 34 | 35 | int 36 | get_uuid_string(char *buf); 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tagutils/tagutils-ogg.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-ogg.h 3 | // DESCRIPTION : Ogg metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved. 6 | //========================================================================= 7 | 8 | /* 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | static int _get_oggfileinfo(char *filename, struct song_metadata *psong); 24 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/uuid.h: -------------------------------------------------------------------------------- 1 | /* UUID generation functions 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #ifndef __UUID_H__ 25 | #define __UUID_H__ 26 | 27 | #define ETH_ALEN 6 28 | #ifndef NSEC_PER_SEC 29 | #define NSEC_PER_SEC 1000000000L 30 | #endif 31 | #ifndef NSEC_PER_MSEC 32 | #define NSEC_PER_MSEC 1000000L 33 | #endif 34 | 35 | int 36 | get_uuid_string(char *buf); 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /src/minidlna-git/tagutils/tagutils-dsf.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-dsf.h 3 | // DESCRIPTION : DSF metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2014 Takeshich NAKAMURA 6 | //========================================================================= 7 | 8 | /* 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program. If not, see . 21 | */ 22 | static int _get_dsffileinfo(char *file, struct song_metadata *psong); 23 | static int _get_dsftags(char *file, struct song_metadata *psong); 24 | -------------------------------------------------------------------------------- /src/minidlna-git/tagutils/tagutils-flc.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-flc.h 3 | // DESCRIPTION : FLAC metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved. 6 | //========================================================================= 7 | 8 | /* This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; either version 2 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | static int _get_flcfileinfo(char *file, struct song_metadata *psong); 23 | static int _get_flctags(char *file, struct song_metadata *psong); 24 | -------------------------------------------------------------------------------- /src/minidlna-git/tagutils/tagutils-wav.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-wav.h 3 | // DESCRIPTION : WAV metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2009- NETGEAR, Inc. All Rights Reserved. 6 | //========================================================================= 7 | 8 | /* This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; either version 2 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | static int _get_wavfileinfo(char *file, struct song_metadata *psong); 23 | static int _get_wavtags(char *file, struct song_metadata *psong); 24 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tagutils/tagutils-dsf.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-dsf.h 3 | // DESCRIPTION : DSF metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2014 Takeshich NAKAMURA 6 | //========================================================================= 7 | 8 | /* 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program. If not, see . 21 | */ 22 | static int _get_dsffileinfo(char *file, struct song_metadata *psong); 23 | static int _get_dsftags(char *file, struct song_metadata *psong); 24 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tagutils/tagutils-flc.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-flc.h 3 | // DESCRIPTION : FLAC metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved. 6 | //========================================================================= 7 | 8 | /* This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; either version 2 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | static int _get_flcfileinfo(char *file, struct song_metadata *psong); 23 | static int _get_flctags(char *file, struct song_metadata *psong); 24 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tagutils/tagutils-wav.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-wav.h 3 | // DESCRIPTION : WAV metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2009- NETGEAR, Inc. All Rights Reserved. 6 | //========================================================================= 7 | 8 | /* This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; either version 2 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | */ 21 | 22 | static int _get_wavfileinfo(char *file, struct song_metadata *psong); 23 | static int _get_wavtags(char *file, struct song_metadata *psong); 24 | -------------------------------------------------------------------------------- /src/minidlna-git/event.h: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | 3 | #include 4 | #ifdef HAVE_KQUEUE 5 | #include 6 | #endif 7 | 8 | struct event; 9 | 10 | typedef enum { 11 | #ifdef HAVE_KQUEUE 12 | EVENT_READ = EVFILT_READ, 13 | EVENT_WRITE = EVFILT_WRITE, 14 | EVENT_VNODE = EVFILT_VNODE, 15 | #else 16 | EVENT_READ, 17 | EVENT_WRITE, 18 | #endif 19 | } event_t; 20 | 21 | #define EV_FLAG_CLOSING 0x00000001 22 | 23 | typedef void event_process_t(struct event *); 24 | #ifdef HAVE_KQUEUE 25 | typedef void event_vnode_process_t(struct event *, u_int); 26 | #endif 27 | 28 | struct event { 29 | int fd; 30 | int index; 31 | event_t rdwr; 32 | union { 33 | event_process_t *process; 34 | #ifdef HAVE_KQUEUE 35 | event_vnode_process_t *process_vnode; 36 | #endif 37 | }; 38 | void *data; 39 | }; 40 | 41 | typedef int event_module_add_t(struct event *); 42 | typedef int event_module_del_t(struct event *, int flags); 43 | typedef int event_module_init_t(void); 44 | typedef void event_module_fini_t(void); 45 | typedef int event_module_process_t(struct timeval *); 46 | struct event_module { 47 | event_module_add_t *add; 48 | event_module_del_t *del; 49 | event_module_process_t *process; 50 | event_module_init_t *init; 51 | event_module_fini_t *fini; 52 | }; 53 | 54 | extern struct event_module event_module; 55 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/event.h: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | 3 | #include 4 | #ifdef HAVE_KQUEUE 5 | #include 6 | #endif 7 | 8 | struct event; 9 | 10 | typedef enum { 11 | #ifdef HAVE_KQUEUE 12 | EVENT_READ = EVFILT_READ, 13 | EVENT_WRITE = EVFILT_WRITE, 14 | EVENT_VNODE = EVFILT_VNODE, 15 | #else 16 | EVENT_READ, 17 | EVENT_WRITE, 18 | #endif 19 | } event_t; 20 | 21 | #define EV_FLAG_CLOSING 0x00000001 22 | 23 | typedef void event_process_t(struct event *); 24 | #ifdef HAVE_KQUEUE 25 | typedef void event_vnode_process_t(struct event *, u_int); 26 | #endif 27 | 28 | struct event { 29 | int fd; 30 | int index; 31 | event_t rdwr; 32 | union { 33 | event_process_t *process; 34 | #ifdef HAVE_KQUEUE 35 | event_vnode_process_t *process_vnode; 36 | #endif 37 | }; 38 | void *data; 39 | }; 40 | 41 | typedef int event_module_add_t(struct event *); 42 | typedef int event_module_del_t(struct event *, int flags); 43 | typedef int event_module_init_t(void); 44 | typedef void event_module_fini_t(void); 45 | typedef int event_module_process_t(u_long); 46 | struct event_module { 47 | event_module_add_t *add; 48 | event_module_del_t *del; 49 | event_module_process_t *process; 50 | event_module_init_t *init; 51 | event_module_fini_t *fini; 52 | }; 53 | 54 | extern struct event_module event_module; 55 | -------------------------------------------------------------------------------- /src/minidlna-git/containers.h: -------------------------------------------------------------------------------- 1 | /* MiniDLNA media server 2 | * Copyright (C) 2014 NETGEAR 3 | * 4 | * This file is part of MiniDLNA. 5 | * 6 | * MiniDLNA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License version 2 as 8 | * published by the Free Software Foundation. 9 | * 10 | * MiniDLNA is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with MiniDLNA. If not, see . 17 | */ 18 | 19 | struct magic_container_s { 20 | const char *name; 21 | const char *objectid_match; 22 | const char **objectid; 23 | const char *objectid_sql; 24 | const char *parentid_sql; 25 | const char *refid_sql; 26 | const char *child_count; 27 | const char *where; 28 | const char *orderby; 29 | int max_count; 30 | int required_flags; 31 | }; 32 | 33 | extern struct magic_container_s magic_containers[]; 34 | 35 | struct magic_container_s *in_magic_container(const char *id, int flags, const char **real_id); 36 | struct magic_container_s *check_magic_container(const char *id, int flags); 37 | -------------------------------------------------------------------------------- /src/minidlna-git/tagutils/tagutils-aac.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-aac.h 3 | // DESCRIPTION : AAC metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved. 6 | //========================================================================= 7 | 8 | /* 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | static int _get_aactags(char *file, struct song_metadata *psong); 24 | static int _get_aacfileinfo(char *file, struct song_metadata *psong); 25 | static off_t _aac_lookforatom(FILE *aac_fp, char *atom_path, unsigned int *atom_length); 26 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/containers.h: -------------------------------------------------------------------------------- 1 | /* MiniDLNA media server 2 | * Copyright (C) 2014 NETGEAR 3 | * 4 | * This file is part of MiniDLNA. 5 | * 6 | * MiniDLNA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License version 2 as 8 | * published by the Free Software Foundation. 9 | * 10 | * MiniDLNA is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with MiniDLNA. If not, see . 17 | */ 18 | 19 | struct magic_container_s { 20 | const char *name; 21 | const char *objectid_match; 22 | const char **objectid; 23 | const char *objectid_sql; 24 | const char *parentid_sql; 25 | const char *refid_sql; 26 | const char *child_count; 27 | const char *where; 28 | const char *orderby; 29 | int max_count; 30 | int required_flags; 31 | }; 32 | 33 | extern struct magic_container_s magic_containers[]; 34 | 35 | struct magic_container_s *in_magic_container(const char *id, int flags, const char **real_id); 36 | struct magic_container_s *check_magic_container(const char *id, int flags); 37 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tagutils/tagutils-aac.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-aac.h 3 | // DESCRIPTION : AAC metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved. 6 | //========================================================================= 7 | 8 | /* 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | static int _get_aactags(char *file, struct song_metadata *psong); 24 | static int _get_aacfileinfo(char *file, struct song_metadata *psong); 25 | static off_t _aac_lookforatom(FILE *aac_fp, char *atom_path, unsigned int *atom_length); 26 | -------------------------------------------------------------------------------- /src/minidlna-git/tivo_beacon.h: -------------------------------------------------------------------------------- 1 | /* TiVo discovery 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #include "config.h" 25 | #ifdef TIVO_SUPPORT 26 | /* 27 | * * A saved copy of a beacon from another tivo or another server 28 | * */ 29 | struct aBeacon 30 | { 31 | #ifdef DEBUG 32 | time_t lastSeen; 33 | #endif 34 | char * machine; 35 | char * identity; 36 | struct aBeacon *next; 37 | }; 38 | 39 | uint32_t 40 | getBcastAddress(); 41 | 42 | int 43 | OpenAndConfTivoBeaconSocket(); 44 | 45 | void 46 | sendBeaconMessage(int fd, struct sockaddr_in * client, int len, int broadcast); 47 | 48 | void 49 | ProcessTiVoBeacon(struct event *); 50 | #endif 51 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tivo_beacon.h: -------------------------------------------------------------------------------- 1 | /* TiVo discovery 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #include "config.h" 25 | #ifdef TIVO_SUPPORT 26 | /* 27 | * * A saved copy of a beacon from another tivo or another server 28 | * */ 29 | struct aBeacon 30 | { 31 | #ifdef DEBUG 32 | time_t lastSeen; 33 | #endif 34 | char * machine; 35 | char * identity; 36 | struct aBeacon *next; 37 | }; 38 | 39 | uint32_t 40 | getBcastAddress(); 41 | 42 | int 43 | OpenAndConfTivoBeaconSocket(); 44 | 45 | void 46 | sendBeaconMessage(int fd, struct sockaddr_in * client, int len, int broadcast); 47 | 48 | void 49 | ProcessTiVoBeacon(struct event *); 50 | #endif 51 | -------------------------------------------------------------------------------- /src/minidlna-git/buildroot/readymedia_defconfig: -------------------------------------------------------------------------------- 1 | BR2_SHARED_STATIC_LIBS=y 2 | BR2_TOOLCHAIN_BUILDROOT_VENDOR="readymedia" 3 | BR2_TOOLCHAIN_BUILDROOT_MUSL=y 4 | BR2_KERNEL_HEADERS_VERSION=y 5 | BR2_DEFAULT_KERNEL_VERSION="2.6.32" 6 | BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_REALLY_OLD=y 7 | BR2_BINUTILS_VERSION_2_37_X=y 8 | BR2_GCC_VERSION_11_X=y 9 | BR2_GCC_ENABLE_LTO=y 10 | BR2_TARGET_GENERIC_HOSTNAME="readymedia" 11 | BR2_INIT_NONE=y 12 | # BR2_TARGET_ENABLE_ROOT_LOGIN is not set 13 | # BR2_TARGET_GENERIC_GETTY is not set 14 | # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set 15 | # BR2_PACKAGE_BUSYBOX is not set 16 | BR2_PACKAGE_FFMPEG_ENCODERS="" 17 | BR2_PACKAGE_FFMPEG_DECODERS="aac alac eac3 flac flv h264 mp3 mpeg2video mpeg4 pcm_s16be pcm_s16le vorbis wmalossless wmapro wmav1 wmav2" 18 | BR2_PACKAGE_FFMPEG_MUXERS="" 19 | BR2_PACKAGE_FFMPEG_DEMUXERS="aac ac3 aiff asf avi dts dv eac3 flac flv h261 h263 h264 matroska mjpeg mov m4v mp3 mpegps mpegts mpegtsraw mpegvideo ogg vc1 wav" 20 | BR2_PACKAGE_FFMPEG_PARSERS="aac ac3 dvbsub dvdsub flac h261 h263 h264 mjpeg mlp mpeg4video mpegaudio mpegvideo vc1 vorbis vp3 vp8" 21 | BR2_PACKAGE_FFMPEG_BSFS="" 22 | BR2_PACKAGE_FFMPEG_PROTOCOLS="file" 23 | BR2_PACKAGE_FFMPEG_FILTERS="" 24 | # BR2_PACKAGE_FFMPEG_INDEVS is not set 25 | # BR2_PACKAGE_FFMPEG_OUTDEVS is not set 26 | BR2_PACKAGE_FFMPEG_EXTRACONF="--enable-small --disable-pic --disable-avfilter --disable-libvorbis --disable-network --disable-muxer=ogg" 27 | # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set 28 | BR2_PACKAGE_READYMEDIA=y 29 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tivo_utils.h: -------------------------------------------------------------------------------- 1 | /* TiVo helper functions 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #include "config.h" 25 | 26 | #ifdef TIVO_SUPPORT 27 | #include 28 | 29 | struct sqlite3PrngType { 30 | unsigned char isInit; /* True if initialized */ 31 | unsigned char i, j; /* State variables */ 32 | unsigned char s[256]; /* State variables */ 33 | } sqlite3Prng; 34 | 35 | char * 36 | decodeString(char *string, int inplace); 37 | 38 | void 39 | TiVoRandomSeedFunc(sqlite3_context *context, int argc, sqlite3_value **argv); 40 | 41 | int 42 | is_tivo_file(const char *path); 43 | 44 | #else 45 | #define decodeString(X, Y) ({}) 46 | #endif 47 | -------------------------------------------------------------------------------- /exploits/README.md: -------------------------------------------------------------------------------- 1 | # CVE-2023-33476: MiniDLNA 1.3.2 Heap Overflow 2 | 3 | See blog posts here for more details: 4 | - https://blog.coffinsec.com/0day/2023/05/31/minidlna-heap-overflow-rca.html 5 | 6 | ## exploit 1: tcache poisoning to GOT overwrite -> reverse shell 7 | 8 | - OS: Debian 11 9 | - Arch: x86_64 10 | - Glibc: 2.31 11 | - Partial RELRO, no PIE 12 | - `system()` addr and GOT addr assumed known 13 | 14 | ``` 15 | usage: tpoison-nopie-x64_reverse-shell.py [-h] [--target_port TARGET_PORT] [--lhost LHOST] [--lport LPORT] [--system_addr SYSTEM_ADDR] [--got_addr GOT_ADDR] target_ip 16 | 17 | miniDLNA 1.3.2 Heap OOB r/w RCE exploit -> reverse shell (by @hyprdude) 18 | 19 | positional arguments: 20 | target_ip IP address of host running the service 21 | 22 | options: 23 | -h, --help show this help message and exit 24 | --target_port TARGET_PORT 25 | Target port (default: 8200) 26 | --lhost LHOST Bind IP for reverse shell listener (default: 10.10.13.20) 27 | --lport LPORT Bind port for reverse shell listener (default: 1337) 28 | --system_addr SYSTEM_ADDR 29 | Address to overwrite GOT entry with (defaults to system() at 0x7ffff61ee020) 30 | --got_addr GOT_ADDR Address of the GOT (default: 0x45c118) 31 | 32 | ``` 33 | 34 | ## exploit 2: tcache poisoning to pivot2stack RIP overwrite 35 | 36 | - Target: Netgear RAX30 minidlna binary running via QEMU 37 | - Arch: arm32 38 | - Full RELRO 39 | - `system()` addr and stack addr assumed known 40 | -------------------------------------------------------------------------------- /src/minidlna-git/tivo_utils.h: -------------------------------------------------------------------------------- 1 | /* TiVo helper functions 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #include "config.h" 25 | 26 | #ifdef TIVO_SUPPORT 27 | #include 28 | 29 | struct sqlite3PrngType { 30 | unsigned char isInit; /* True if initialized */ 31 | unsigned char i, j; /* State variables */ 32 | unsigned char s[256]; /* State variables */ 33 | }; 34 | extern struct sqlite3PrngType sqlite3Prng; 35 | 36 | char * 37 | decodeString(char *string, int inplace); 38 | 39 | void 40 | TiVoRandomSeedFunc(sqlite3_context *context, int argc, sqlite3_value **argv); 41 | 42 | int 43 | is_tivo_file(const char *path); 44 | 45 | #else 46 | #define decodeString(X, Y) ({}) 47 | #endif 48 | -------------------------------------------------------------------------------- /src/minidlna-git/LICENCE.miniupnpd: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006-2007, Thomas BERNARD 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, 8 | this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above copyright notice, 10 | this list of conditions and the following disclaimer in the documentation 11 | and/or other materials provided with the distribution. 12 | * The name of the author may not be used to endorse or promote products 13 | derived from this software without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 19 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 | POSSIBILITY OF SUCH DAMAGE. 26 | 27 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/LICENCE.miniupnpd: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006-2007, Thomas BERNARD 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, 8 | this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above copyright notice, 10 | this list of conditions and the following disclaimer in the documentation 11 | and/or other materials provided with the distribution. 12 | * The name of the author may not be used to endorse or promote products 13 | derived from this software without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 19 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 | POSSIBILITY OF SUCH DAMAGE. 26 | 27 | -------------------------------------------------------------------------------- /src/minidlna-git/sql.h: -------------------------------------------------------------------------------- 1 | /* Reusable SQLite3 wrapper functions 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2008-2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #ifndef __SQL_H__ 25 | #define __SQL_H__ 26 | 27 | #include 28 | #include 29 | 30 | #ifndef HAVE_SQLITE3_MALLOC 31 | #define sqlite3_malloc(size) sqlite3_mprintf("%*s", size, "") 32 | #endif 33 | #ifndef HAVE_SQLITE3_PREPARE_V2 34 | #define sqlite3_prepare_v2 sqlite3_prepare 35 | #endif 36 | 37 | int sql_exec(sqlite3 *db, const char *fmt, ...); 38 | int sql_get_table(sqlite3 *db, const char *zSql, char ***pazResult, int *pnRow, int *pnColumn); 39 | int sql_get_int_field(sqlite3 *db, const char *fmt, ...); 40 | int64_t sql_get_int64_field(sqlite3 *db, const char *fmt, ...); 41 | char * sql_get_text_field(sqlite3 *db, const char *fmt, ...); 42 | int db_upgrade(sqlite3 *db); 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/sql.h: -------------------------------------------------------------------------------- 1 | /* Reusable SQLite3 wrapper functions 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2008-2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #ifndef __SQL_H__ 25 | #define __SQL_H__ 26 | 27 | #include 28 | #include 29 | 30 | #ifndef HAVE_SQLITE3_MALLOC 31 | #define sqlite3_malloc(size) sqlite3_mprintf("%*s", size, "") 32 | #endif 33 | #ifndef HAVE_SQLITE3_PREPARE_V2 34 | #define sqlite3_prepare_v2 sqlite3_prepare 35 | #endif 36 | 37 | int sql_exec(sqlite3 *db, const char *fmt, ...); 38 | int sql_get_table(sqlite3 *db, const char *zSql, char ***pazResult, int *pnRow, int *pnColumn); 39 | int sql_get_int_field(sqlite3 *db, const char *fmt, ...); 40 | int64_t sql_get_int64_field(sqlite3 *db, const char *fmt, ...); 41 | char * sql_get_text_field(sqlite3 *db, const char *fmt, ...); 42 | int db_upgrade(sqlite3 *db); 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/fuzzers/fuzz_http_libfuzzer.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "config.h" 6 | 7 | #ifdef ENABLE_NLS 8 | #include 9 | #include 10 | #endif 11 | 12 | #include "event.h" 13 | #include "clients.h" 14 | #include "process.h" 15 | #include "upnpglobalvars.h" 16 | #include "sql.h" 17 | #include "upnpdescgen.h" 18 | #include "minidlnapath.h" 19 | #include "getifaddr.h" 20 | #include "minixml.h" 21 | #include "upnphttp.h" 22 | #include "minidlnatypes.h" 23 | #include "upnpsoap.h" 24 | #include "containers.h" 25 | #include "upnpreplyparse.h" 26 | #include "scanner.h" 27 | #include "log.h" 28 | 29 | void ProcessHttpQuery_upnphttp(struct upnphttp *); 30 | void ParseHttpHeaders(struct upnphttp *); 31 | 32 | int LLVMFuzzerTestOneInput(char *buf, size_t size) 33 | { 34 | struct upnphttp *h = New_upnphttp(size); 35 | const char *endheaders; 36 | h->req_buf = (char *)malloc(size+1); 37 | if (!h->req_buf) 38 | { 39 | return 0; 40 | } 41 | memcpy(h->req_buf, buf, size); 42 | h->req_buflen = size; 43 | h->req_buf[h->req_buflen] = '\0'; 44 | /* search for the string "\r\n\r\n" */ 45 | endheaders = strstr(h->req_buf, "\r\n\r\n"); 46 | if(endheaders) 47 | { 48 | h->req_contentoff = endheaders - h->req_buf + 4; 49 | h->req_contentlen = h->req_buflen - h->req_contentoff; 50 | ProcessHttpQuery_upnphttp(h); 51 | /* ParseHttpHeaders(h); */ 52 | /* ProcessHTTPPOST_upnphttp(h); */ 53 | free(h->req_buf); 54 | free(h->res_buf); 55 | free(h); 56 | return 0; 57 | } 58 | free(h->req_buf); 59 | free(h->res_buf); 60 | free(h); 61 | return -1; 62 | } 63 | 64 | -------------------------------------------------------------------------------- /src/minidlna-git/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # This file is part of MiniDLNA. 3 | # 4 | # MiniDLNA is free software; you can redistribute it and/or modify it 5 | # under the terms of the GNU Lesser General Public License as 6 | # published by the Free Software Foundation; either version 2 of the 7 | # License, or (at your option) any later version. 8 | # 9 | # MiniDLNA is distributed in the hope that it will be useful, but WITHOUT 10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 11 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 12 | # License for more details. 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with MiniDLNA; if not, write to the Free Software 16 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 17 | # USA. 18 | 19 | package="minidlna" 20 | 21 | srcdir=`dirname $0` 22 | test -z "$srcdir" && srcdir=. 23 | 24 | cd "$srcdir" 25 | DIE=0 26 | 27 | (autoconf --version) < /dev/null > /dev/null 2>&1 || { 28 | echo 29 | echo "You must have autoconf installed to compile $package." 30 | echo "Download the appropriate package for your system," 31 | echo "or get the source from one of the GNU ftp sites" 32 | echo "listed in http://www.gnu.org/order/ftp.html" 33 | DIE=1 34 | } 35 | 36 | (automake --version) < /dev/null > /dev/null 2>&1 || { 37 | echo 38 | echo "You must have automake installed to compile $package." 39 | echo "Download the appropriate package for your system," 40 | echo "or get the source from one of the GNU ftp sites" 41 | echo "listed in http://www.gnu.org/order/ftp.html" 42 | DIE=1 43 | } 44 | 45 | if test "$DIE" -eq 1; then 46 | exit 1 47 | fi 48 | 49 | echo "Generating configuration files for $package, please wait...." 50 | 51 | autoreconf -vfi 52 | 53 | -------------------------------------------------------------------------------- /src/minidlna-git/image_utils.h: -------------------------------------------------------------------------------- 1 | /* Image manipulation functions 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #include 25 | 26 | #define ROTATE_NONE 0x0 27 | #define ROTATE_90 0x1 28 | #define ROTATE_180 0x2 29 | #define ROTATE_270 0x4 30 | 31 | typedef uint32_t pix; 32 | 33 | typedef struct { 34 | int32_t width; 35 | int32_t height; 36 | pix *buf; 37 | } image_s; 38 | 39 | void 40 | image_free(image_s *pimage); 41 | 42 | int 43 | image_get_jpeg_date_xmp(const char * path, char ** date); 44 | 45 | int 46 | image_get_jpeg_resolution(const char * path, int * width, int * height); 47 | 48 | image_s * 49 | image_new_from_jpeg(const char *path, int is_file, const uint8_t *ptr, int size, int scale, int resize); 50 | 51 | image_s * 52 | image_resize(image_s * src_image, int32_t width, int32_t height); 53 | 54 | unsigned char * 55 | image_save_to_jpeg_buf(image_s * pimage, int * size); 56 | 57 | char * 58 | image_save_to_jpeg_file(image_s * pimage, char * path); 59 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # This file is part of MiniDLNA. 3 | # 4 | # MiniDLNA is free software; you can redistribute it and/or modify it 5 | # under the terms of the GNU Lesser General Public License as 6 | # published by the Free Software Foundation; either version 2 of the 7 | # License, or (at your option) any later version. 8 | # 9 | # MiniDLNA is distributed in the hope that it will be useful, but WITHOUT 10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 11 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 12 | # License for more details. 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with MiniDLNA; if not, write to the Free Software 16 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 17 | # USA. 18 | 19 | package="minidlna" 20 | 21 | srcdir=`dirname $0` 22 | test -z "$srcdir" && srcdir=. 23 | 24 | cd "$srcdir" 25 | DIE=0 26 | 27 | (autoconf --version) < /dev/null > /dev/null 2>&1 || { 28 | echo 29 | echo "You must have autoconf installed to compile $package." 30 | echo "Download the appropriate package for your system," 31 | echo "or get the source from one of the GNU ftp sites" 32 | echo "listed in http://www.gnu.org/order/ftp.html" 33 | DIE=1 34 | } 35 | 36 | (automake --version) < /dev/null > /dev/null 2>&1 || { 37 | echo 38 | echo "You must have automake installed to compile $package." 39 | echo "Download the appropriate package for your system," 40 | echo "or get the source from one of the GNU ftp sites" 41 | echo "listed in http://www.gnu.org/order/ftp.html" 42 | DIE=1 43 | } 44 | 45 | if test "$DIE" -eq 1; then 46 | exit 1 47 | fi 48 | 49 | echo "Generating configuration files for $package, please wait...." 50 | 51 | autoreconf -vfi 52 | 53 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/image_utils.h: -------------------------------------------------------------------------------- 1 | /* Image manipulation functions 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #include 25 | 26 | #define ROTATE_NONE 0x0 27 | #define ROTATE_90 0x1 28 | #define ROTATE_180 0x2 29 | #define ROTATE_270 0x4 30 | 31 | typedef uint32_t pix; 32 | 33 | typedef struct { 34 | int32_t width; 35 | int32_t height; 36 | pix *buf; 37 | } image_s; 38 | 39 | void 40 | image_free(image_s *pimage); 41 | 42 | int 43 | image_get_jpeg_date_xmp(const char * path, char ** date); 44 | 45 | int 46 | image_get_jpeg_resolution(const char * path, int * width, int * height); 47 | 48 | image_s * 49 | image_new_from_jpeg(const char *path, int is_file, const uint8_t *ptr, int size, int scale, int resize); 50 | 51 | image_s * 52 | image_resize(image_s * src_image, int32_t width, int32_t height); 53 | 54 | unsigned char * 55 | image_save_to_jpeg_buf(image_s * pimage, int * size); 56 | 57 | char * 58 | image_save_to_jpeg_file(image_s * pimage, char * path); 59 | -------------------------------------------------------------------------------- /src/minidlna-git/upnpsoap.h: -------------------------------------------------------------------------------- 1 | /* MiniDLNA project 2 | * http://minidlna.sourceforge.net/ 3 | * 4 | * MiniDLNA media server 5 | * Copyright (C) 2008-2009 Justin Maggard 6 | * 7 | * This file is part of MiniDLNA. 8 | * 9 | * MiniDLNA is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License version 2 as 11 | * published by the Free Software Foundation. 12 | * 13 | * MiniDLNA is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with MiniDLNA. If not, see . 20 | */ 21 | #ifndef __UPNPSOAP_H__ 22 | #define __UPNPSOAP_H__ 23 | 24 | #define DEFAULT_RESP_SIZE 131072 25 | #define MAX_RESPONSE_SIZE 2097152 26 | 27 | #define CONTENT_DIRECTORY_SCHEMAS \ 28 | " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"" \ 29 | " xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\"" \ 30 | " xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\"" 31 | #define DLNA_NAMESPACE \ 32 | " xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\"" 33 | #define PV_NAMESPACE \ 34 | " xmlns:pv=\"http://www.pv.com/pvns/\"" 35 | #define SEC_NAMESPACE \ 36 | " xmlns:sec=\"http://www.sec.co.kr/dlna\"" 37 | 38 | struct Response 39 | { 40 | struct string_s *str; 41 | int start; 42 | int returned; 43 | int requested; 44 | int iface; 45 | uint32_t filter; 46 | uint32_t flags; 47 | enum client_types client; 48 | }; 49 | 50 | /* ExecuteSoapAction(): 51 | * this method executes the requested Soap Action */ 52 | void 53 | ExecuteSoapAction(struct upnphttp *, const char *, int); 54 | 55 | #endif 56 | 57 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/upnpsoap.h: -------------------------------------------------------------------------------- 1 | /* MiniDLNA project 2 | * http://minidlna.sourceforge.net/ 3 | * 4 | * MiniDLNA media server 5 | * Copyright (C) 2008-2009 Justin Maggard 6 | * 7 | * This file is part of MiniDLNA. 8 | * 9 | * MiniDLNA is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License version 2 as 11 | * published by the Free Software Foundation. 12 | * 13 | * MiniDLNA is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with MiniDLNA. If not, see . 20 | */ 21 | #ifndef __UPNPSOAP_H__ 22 | #define __UPNPSOAP_H__ 23 | 24 | #define DEFAULT_RESP_SIZE 131072 25 | #define MAX_RESPONSE_SIZE 2097152 26 | 27 | #define CONTENT_DIRECTORY_SCHEMAS \ 28 | " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"" \ 29 | " xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\"" \ 30 | " xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\"" 31 | #define DLNA_NAMESPACE \ 32 | " xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\"" 33 | #define PV_NAMESPACE \ 34 | " xmlns:pv=\"http://www.pv.com/pvns/\"" 35 | #define SEC_NAMESPACE \ 36 | " xmlns:sec=\"http://www.sec.co.kr/dlna\"" 37 | 38 | struct Response 39 | { 40 | struct string_s *str; 41 | int start; 42 | int returned; 43 | int requested; 44 | int iface; 45 | uint32_t filter; 46 | uint32_t flags; 47 | enum client_types client; 48 | }; 49 | 50 | /* ExecuteSoapAction(): 51 | * this method executes the requested Soap Action */ 52 | void 53 | ExecuteSoapAction(struct upnphttp *, const char *, int); 54 | 55 | #endif 56 | 57 | -------------------------------------------------------------------------------- /src/minidlna-git/log.h: -------------------------------------------------------------------------------- 1 | /* MiniDLNA media server 2 | * Copyright (C) 2008-2010 NETGEAR, Inc. All Rights Reserved. 3 | * 4 | * This file is part of MiniDLNA. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License along 17 | * with this program; if not, write to the Free Software Foundation, Inc., 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 19 | */ 20 | 21 | #ifndef __ERR_H__ 22 | #define __ERR_H__ 23 | 24 | #define E_OFF 0 25 | #define E_FATAL 1 26 | #define E_ERROR 2 27 | #define E_WARN 3 28 | #define E_INFO 4 29 | #define E_DEBUG 5 30 | #define E_MAXDEBUG 6 31 | 32 | enum _log_facility 33 | { 34 | L_GENERAL=0, 35 | L_ARTWORK, 36 | L_DB_SQL, 37 | L_INOTIFY, 38 | L_SCANNER, 39 | L_METADATA, 40 | L_HTTP, 41 | L_SSDP, 42 | L_TIVO, 43 | L_MAX 44 | }; 45 | 46 | extern int log_level[L_MAX]; 47 | extern int log_init(const char *debug); 48 | extern void log_close(void); 49 | extern void log_reopen(void); 50 | extern void log_err(int level, enum _log_facility facility, char *fname, int lineno, char *fmt, ...) 51 | __attribute__((__format__ (__printf__, 5, 6))); 52 | 53 | #define DPRINTF(level, facility, fmt, arg...) do { log_err(level, facility, __FILE__, __LINE__, fmt, ##arg); } while (0) 54 | 55 | 56 | #endif /* __ERR_H__ */ 57 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/log.h: -------------------------------------------------------------------------------- 1 | /* MiniDLNA media server 2 | * Copyright (C) 2008-2010 NETGEAR, Inc. All Rights Reserved. 3 | * 4 | * This file is part of MiniDLNA. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License along 17 | * with this program; if not, write to the Free Software Foundation, Inc., 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 19 | */ 20 | 21 | #ifndef __ERR_H__ 22 | #define __ERR_H__ 23 | 24 | #define E_OFF 0 25 | #define E_FATAL 1 26 | #define E_ERROR 2 27 | #define E_WARN 3 28 | #define E_INFO 4 29 | #define E_DEBUG 5 30 | #define E_MAXDEBUG 6 31 | 32 | enum _log_facility 33 | { 34 | L_GENERAL=0, 35 | L_ARTWORK, 36 | L_DB_SQL, 37 | L_INOTIFY, 38 | L_SCANNER, 39 | L_METADATA, 40 | L_HTTP, 41 | L_SSDP, 42 | L_TIVO, 43 | L_MAX 44 | }; 45 | 46 | extern int log_level[L_MAX]; 47 | extern int log_init(const char *debug); 48 | extern void log_close(void); 49 | extern void log_reopen(void); 50 | extern void log_err(int level, enum _log_facility facility, char *fname, int lineno, char *fmt, ...) 51 | __attribute__((__format__ (__printf__, 5, 6))); 52 | 53 | #define DPRINTF(level, facility, fmt, arg...) do { log_err(level, facility, __FILE__, __LINE__, fmt, ##arg); } while (0) 54 | 55 | 56 | #endif /* __ERR_H__ */ 57 | -------------------------------------------------------------------------------- /src/minidlna-git/linux/minidlna.init.d.script.tmpl: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # chkconfig: 345 99 10 4 | # description: Startup/shutdown script for MiniDLNA daemon 5 | # 6 | # Based on the MiniUPnPd script by Thomas Bernard 7 | # Modified for MiniDLNA by Justin Maggard 8 | # Status function added by Igor Drobot 9 | # 10 | ### BEGIN INIT INFO 11 | # Provides: minidlna 12 | # Required-Start: $network $local_fs $remote_fs 13 | # Required-Stop:: $network $local_fs $remote_fs 14 | # Should-Start: $all 15 | # Should-Stop: $all 16 | # Default-Start: 2 3 4 5 17 | # Default-Stop: 0 1 6 18 | # Short-Description: DLNA/UPnP-AV media server 19 | ### END INIT INFO 20 | 21 | MINIDLNA=:SBINDIR:/minidlnad 22 | PIDFILE=/var/run/minidlna/minidlna.pid 23 | CONF=/etc/minidlna.conf 24 | ARGS="-f $CONF" 25 | 26 | test -f $MINIDLNA || exit 0 27 | 28 | . /lib/lsb/init-functions 29 | 30 | case "$1" in 31 | start) log_daemon_msg "Starting minidlna" "minidlna" 32 | start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $MINIDLNA -- $ARGS $LSBNAMES 33 | log_end_msg $? 34 | ;; 35 | stop) log_daemon_msg "Stopping minidlna" "minidlna" 36 | start-stop-daemon --stop --quiet --pidfile $PIDFILE 37 | log_end_msg $? 38 | ;; 39 | restart|reload|force-reload) 40 | log_daemon_msg "Restarting minidlna" "minidlna" 41 | start-stop-daemon --stop --retry 5 --quiet --pidfile $PIDFILE 42 | start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $MINIDLNA -- $ARGS $LSBNAMES 43 | log_end_msg $? 44 | ;; 45 | status) 46 | status_of_proc -p $PIDFILE $MINIDLNA minidlna && exit 0 || exit $? 47 | ;; 48 | *) log_action_msg "Usage: /etc/init.d/minidlna {start|stop|restart|reload|force-reload|status}" 49 | exit 2 50 | ;; 51 | esac 52 | exit 0 53 | -------------------------------------------------------------------------------- /src/minidlna-git/sendfile.h: -------------------------------------------------------------------------------- 1 | /* MiniDLNA media server 2 | * Copyright (C) 2013 NETGEAR 3 | * 4 | * This file is part of MiniDLNA. 5 | * 6 | * MiniDLNA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License version 2 as 8 | * published by the Free Software Foundation. 9 | * 10 | * MiniDLNA is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with MiniDLNA. If not, see . 17 | */ 18 | #if defined(HAVE_LINUX_SENDFILE_API) 19 | 20 | #include 21 | 22 | int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len) 23 | { 24 | return sendfile(sock, sendfd, offset, len); 25 | } 26 | 27 | #elif defined(HAVE_DARWIN_SENDFILE_API) 28 | 29 | #include 30 | #include 31 | #include 32 | 33 | int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len) 34 | { 35 | int ret; 36 | 37 | ret = sendfile(sendfd, sock, *offset, &len, NULL, 0); 38 | *offset += len; 39 | 40 | return ret; 41 | } 42 | 43 | #elif defined(HAVE_FREEBSD_SENDFILE_API) 44 | 45 | #include 46 | #include 47 | #include 48 | 49 | int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len) 50 | { 51 | int ret; 52 | size_t nbytes = len; 53 | 54 | ret = sendfile(sendfd, sock, *offset, nbytes, NULL, &len, 0); 55 | *offset += len; 56 | 57 | return ret; 58 | } 59 | 60 | #else 61 | 62 | #include 63 | 64 | int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len) 65 | { 66 | errno = EINVAL; 67 | return -1; 68 | } 69 | 70 | #endif 71 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/linux/minidlna.init.d.script.tmpl: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # chkconfig: 345 99 10 4 | # description: Startup/shutdown script for MiniDLNA daemon 5 | # 6 | # Based on the MiniUPnPd script by Thomas Bernard 7 | # Modified for MiniDLNA by Justin Maggard 8 | # Status function added by Igor Drobot 9 | # 10 | ### BEGIN INIT INFO 11 | # Provides: minidlna 12 | # Required-Start: $network $local_fs $remote_fs 13 | # Required-Stop:: $network $local_fs $remote_fs 14 | # Should-Start: $all 15 | # Should-Stop: $all 16 | # Default-Start: 2 3 4 5 17 | # Default-Stop: 0 1 6 18 | # Short-Description: DLNA/UPnP-AV media server 19 | ### END INIT INFO 20 | 21 | MINIDLNA=:SBINDIR:/minidlnad 22 | PIDFILE=/var/run/minidlna/minidlna.pid 23 | CONF=/etc/minidlna.conf 24 | ARGS="-f $CONF" 25 | 26 | test -f $MINIDLNA || exit 0 27 | 28 | . /lib/lsb/init-functions 29 | 30 | case "$1" in 31 | start) log_daemon_msg "Starting minidlna" "minidlna" 32 | start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $MINIDLNA -- $ARGS $LSBNAMES 33 | log_end_msg $? 34 | ;; 35 | stop) log_daemon_msg "Stopping minidlna" "minidlna" 36 | start-stop-daemon --stop --quiet --pidfile $PIDFILE 37 | log_end_msg $? 38 | ;; 39 | restart|reload|force-reload) 40 | log_daemon_msg "Restarting minidlna" "minidlna" 41 | start-stop-daemon --stop --retry 5 --quiet --pidfile $PIDFILE 42 | start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $MINIDLNA -- $ARGS $LSBNAMES 43 | log_end_msg $? 44 | ;; 45 | status) 46 | status_of_proc -p $PIDFILE $MINIDLNA minidlna && exit 0 || exit $? 47 | ;; 48 | *) log_action_msg "Usage: /etc/init.d/minidlna {start|stop|restart|reload|force-reload|status}" 49 | exit 2 50 | ;; 51 | esac 52 | exit 0 53 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/sendfile.h: -------------------------------------------------------------------------------- 1 | /* MiniDLNA media server 2 | * Copyright (C) 2013 NETGEAR 3 | * 4 | * This file is part of MiniDLNA. 5 | * 6 | * MiniDLNA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License version 2 as 8 | * published by the Free Software Foundation. 9 | * 10 | * MiniDLNA is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with MiniDLNA. If not, see . 17 | */ 18 | #if defined(HAVE_LINUX_SENDFILE_API) 19 | 20 | #include 21 | 22 | int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len) 23 | { 24 | return sendfile(sock, sendfd, offset, len); 25 | } 26 | 27 | #elif defined(HAVE_DARWIN_SENDFILE_API) 28 | 29 | #include 30 | #include 31 | #include 32 | 33 | int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len) 34 | { 35 | int ret; 36 | 37 | ret = sendfile(sendfd, sock, *offset, &len, NULL, 0); 38 | *offset += len; 39 | 40 | return ret; 41 | } 42 | 43 | #elif defined(HAVE_FREEBSD_SENDFILE_API) 44 | 45 | #include 46 | #include 47 | #include 48 | 49 | int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len) 50 | { 51 | int ret; 52 | size_t nbytes = len; 53 | 54 | ret = sendfile(sendfd, sock, *offset, nbytes, NULL, &len, 0); 55 | *offset += len; 56 | 57 | return ret; 58 | } 59 | 60 | #else 61 | 62 | #include 63 | 64 | int sys_sendfile(int sock, int sendfd, off_t *offset, off_t len) 65 | { 66 | errno = EINVAL; 67 | return -1; 68 | } 69 | 70 | #endif 71 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/xml.dict: -------------------------------------------------------------------------------- 1 | # 2 | # AFL dictionary for XML 3 | # ---------------------- 4 | # 5 | # Several basic syntax elements and attributes, modeled on libxml2. 6 | # 7 | # Created by Michal Zalewski 8 | # 9 | 10 | attr_encoding=" encoding=\"1\"" 11 | attr_generic=" a=\"1\"" 12 | attr_href=" href=\"1\"" 13 | attr_standalone=" standalone=\"no\"" 14 | attr_version=" version=\"1\"" 15 | attr_xml_base=" xml:base=\"1\"" 16 | attr_xml_id=" xml:id=\"1\"" 17 | attr_xml_lang=" xml:lang=\"1\"" 18 | attr_xml_space=" xml:space=\"1\"" 19 | attr_xmlns=" xmlns=\"1\"" 20 | 21 | entity_builtin="<" 22 | entity_decimal="" 23 | entity_external="&a;" 24 | entity_hex="" 25 | 26 | string_any="ANY" 27 | string_brackets="[]" 28 | string_cdata="CDATA" 29 | string_col_fallback=":fallback" 30 | string_col_generic=":a" 31 | string_col_include=":include" 32 | string_dashes="--" 33 | string_empty="EMPTY" 34 | string_empty_dblquotes="\"\"" 35 | string_empty_quotes="''" 36 | string_entities="ENTITIES" 37 | string_entity="ENTITY" 38 | string_fixed="#FIXED" 39 | string_id="ID" 40 | string_idref="IDREF" 41 | string_idrefs="IDREFS" 42 | string_implied="#IMPLIED" 43 | string_nmtoken="NMTOKEN" 44 | string_nmtokens="NMTOKENS" 45 | string_notation="NOTATION" 46 | string_parentheses="()" 47 | string_pcdata="#PCDATA" 48 | string_percent="%a" 49 | string_public="PUBLIC" 50 | string_required="#REQUIRED" 51 | string_schema=":schema" 52 | string_system="SYSTEM" 53 | string_ucs4="UCS-4" 54 | string_utf16="UTF-16" 55 | string_utf8="UTF-8" 56 | string_xmlns="xmlns:" 57 | 58 | tag_attlist="" 61 | tag_doctype="" 68 | tag_open_close="" 69 | tag_open_exclamation="" 72 | tag_xml_q="" 73 | -------------------------------------------------------------------------------- /src/minidlna-git/tagutils/tagutils-pcm.c: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-pcm.c 3 | // DESCRIPTION : Return default PCM values. 4 | //========================================================================= 5 | // Copyright (c) 2009 NETGEAR, Inc. All Rights Reserved. 6 | // based on software from Ron Pedde's FireFly Media Server project 7 | //========================================================================= 8 | 9 | /* 10 | * This program is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * This program is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with this program. If not, see . 22 | */ 23 | 24 | static int 25 | _get_pcmfileinfo(char *filename, struct song_metadata *psong) 26 | { 27 | struct stat file; 28 | uint32_t sec, ms; 29 | 30 | if( stat(filename, &file) != 0 ) 31 | { 32 | DPRINTF(E_WARN, L_SCANNER, "Could not stat %s\n", filename); 33 | return -1; 34 | } 35 | 36 | psong->file_size = file.st_size; 37 | psong->bitrate = 1411200; 38 | psong->samplerate = 44100; 39 | psong->channels = 2; 40 | sec = psong->file_size / (psong->bitrate / 8); 41 | ms = ((psong->file_size % (psong->bitrate / 8)) * 1000) / (psong->bitrate / 8); 42 | psong->song_length = (sec * 1000) + ms; 43 | psong->lossless = 1; 44 | 45 | xasprintf(&(psong->mime), "audio/L16;rate=%d;channels=%d", psong->samplerate, psong->channels); 46 | xasprintf(&(psong->dlna_pn), "LPCM"); 47 | 48 | return 0; 49 | } 50 | -------------------------------------------------------------------------------- /src/minidlna-git/po/Makevars: -------------------------------------------------------------------------------- 1 | # Makefile variables for PO directory in any package using GNU gettext. 2 | 3 | # Usually the message domain is the same as the package name. 4 | DOMAIN = $(PACKAGE) 5 | 6 | # These two variables depend on the location of this directory. 7 | subdir = po 8 | top_builddir = .. 9 | 10 | # These options get passed to xgettext. 11 | XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ 12 | 13 | # This is the copyright holder that gets inserted into the header of the 14 | # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding 15 | # package. (Note that the msgstr strings, extracted from the package's 16 | # sources, belong to the copyright holder of the package.) Translators are 17 | # expected to transfer the copyright for their translations to this person 18 | # or entity, or to disclaim their copyright. The empty string stands for 19 | # the public domain; in this case the translators are expected to disclaim 20 | # their copyright. 21 | COPYRIGHT_HOLDER = Justin Maggard 22 | 23 | # This is the email address or URL to which the translators shall report 24 | # bugs in the untranslated strings: 25 | # - Strings which are not entire sentences, see the maintainer guidelines 26 | # in the GNU gettext documentation, section 'Preparing Strings'. 27 | # - Strings which use unclear terms or require additional context to be 28 | # understood. 29 | # - Strings which make invalid assumptions about notation of date, time or 30 | # money. 31 | # - Pluralisation problems. 32 | # - Incorrect English spelling. 33 | # - Incorrect formatting. 34 | # It can be your email address, or a mailing list address where translators 35 | # can write to without being subscribed, or the URL of a web page through 36 | # which the translators can contact you. 37 | MSGID_BUGS_ADDRESS = jmaggard@users.sourceforge.net 38 | 39 | # This is the list of locale categories, beyond LC_MESSAGES, for which the 40 | # message catalogs shall be used. It is usually empty. 41 | EXTRA_LOCALE_CATEGORIES = 42 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tagutils/tagutils-pcm.c: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-pcm.c 3 | // DESCRIPTION : Return default PCM values. 4 | //========================================================================= 5 | // Copyright (c) 2009 NETGEAR, Inc. All Rights Reserved. 6 | // based on software from Ron Pedde's FireFly Media Server project 7 | //========================================================================= 8 | 9 | /* 10 | * This program is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * This program is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with this program. If not, see . 22 | */ 23 | 24 | static int 25 | _get_pcmfileinfo(char *filename, struct song_metadata *psong) 26 | { 27 | struct stat file; 28 | uint32_t sec, ms; 29 | 30 | if( stat(filename, &file) != 0 ) 31 | { 32 | DPRINTF(E_WARN, L_SCANNER, "Could not stat %s\n", filename); 33 | return -1; 34 | } 35 | 36 | psong->file_size = file.st_size; 37 | psong->bitrate = 1411200; 38 | psong->samplerate = 44100; 39 | psong->channels = 2; 40 | sec = psong->file_size / (psong->bitrate / 8); 41 | ms = ((psong->file_size % (psong->bitrate / 8)) * 1000) / (psong->bitrate / 8); 42 | psong->song_length = (sec * 1000) + ms; 43 | psong->lossless = 1; 44 | 45 | xasprintf(&(psong->mime), "audio/L16;rate=%d;channels=%d", psong->samplerate, psong->channels); 46 | xasprintf(&(psong->dlna_pn), "LPCM"); 47 | 48 | return 0; 49 | } 50 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/Makevars: -------------------------------------------------------------------------------- 1 | # Makefile variables for PO directory in any package using GNU gettext. 2 | 3 | # Usually the message domain is the same as the package name. 4 | DOMAIN = $(PACKAGE) 5 | 6 | # These two variables depend on the location of this directory. 7 | subdir = po 8 | top_builddir = .. 9 | 10 | # These options get passed to xgettext. 11 | XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ 12 | 13 | # This is the copyright holder that gets inserted into the header of the 14 | # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding 15 | # package. (Note that the msgstr strings, extracted from the package's 16 | # sources, belong to the copyright holder of the package.) Translators are 17 | # expected to transfer the copyright for their translations to this person 18 | # or entity, or to disclaim their copyright. The empty string stands for 19 | # the public domain; in this case the translators are expected to disclaim 20 | # their copyright. 21 | COPYRIGHT_HOLDER = Justin Maggard 22 | 23 | # This is the email address or URL to which the translators shall report 24 | # bugs in the untranslated strings: 25 | # - Strings which are not entire sentences, see the maintainer guidelines 26 | # in the GNU gettext documentation, section 'Preparing Strings'. 27 | # - Strings which use unclear terms or require additional context to be 28 | # understood. 29 | # - Strings which make invalid assumptions about notation of date, time or 30 | # money. 31 | # - Pluralisation problems. 32 | # - Incorrect English spelling. 33 | # - Incorrect formatting. 34 | # It can be your email address, or a mailing list address where translators 35 | # can write to without being subscribed, or the URL of a web page through 36 | # which the translators can contact you. 37 | MSGID_BUGS_ADDRESS = jmaggard@users.sourceforge.net 38 | 39 | # This is the list of locale categories, beyond LC_MESSAGES, for which the 40 | # message catalogs shall be used. It is usually empty. 41 | EXTRA_LOCALE_CATEGORIES = 42 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/http.dict: -------------------------------------------------------------------------------- 1 | # Sources: https://en.wikipedia.org/wiki/List_of_HTTP_header_fields 2 | 3 | # misc 4 | "HTTP/1.0" 5 | "HTTP/1.1" 6 | 7 | "/soap/server_sa" 8 | # verbs 9 | "GET" 10 | "POST" 11 | "SUBSCRIBE" 12 | "UNSUBSCRIBE" 13 | "NOTIFY" 14 | "M-SEARCH" 15 | "M-SEARCH" 16 | 17 | "/MediaItems/" 18 | "/Thumbnails/" 19 | "/AlbumArt/" 20 | 21 | # custom 22 | "EXT" 23 | "SOAPAction" 24 | "/ctl/ContentDir" 25 | "/evt/ContentDir" 26 | "FriendlyName" 27 | "getcontentFeatures.dlna.org" 28 | 29 | # Fields 30 | "NT" 31 | "SID" 32 | "Callback" 33 | "MX" 34 | "LOCATION" 35 | "Accept" 36 | "Accept-Charset" 37 | "Accept-Datetime" 38 | "Accept-Encoding" 39 | "Accept-Language" 40 | "Accept-Patch" 41 | "Accept-Ranges" 42 | "Access-Control-Allow-Credentials" 43 | "Access-Control-Allow-Headers" 44 | "Access-Control-Allow-Methods" 45 | "Access-Control-Allow-Origin" 46 | "Access-Control-Expose-Headers" 47 | "Access-Control-Max-Age" 48 | "Access-Control-Request-Headers" 49 | "Access-Control-Request-Method" 50 | "Age" 51 | "Allow" 52 | "Alt-Svc" 53 | "Authorization" 54 | "Cache-Control" 55 | "Connection" 56 | "Connection:" 57 | "Content-Disposition" 58 | "Content-Encoding" 59 | "Content-Language" 60 | "Content-Length" 61 | "Content-Location" 62 | "Content-MD5" 63 | "Content-Range" 64 | "Content-Type" 65 | "Cookie" 66 | "DNT" 67 | "Date" 68 | "Expect" 69 | "Expires" 70 | "Forwarded" 71 | "From" 72 | "Front-End-Https" 73 | "HTTP2-Settings" 74 | "Host" 75 | "IM" 76 | "Last-Modified" 77 | "Link" 78 | "Location" 79 | "Origin" 80 | "P3P" 81 | "Pragma" 82 | "Range" 83 | "Referer" 84 | "Refresh" 85 | "Retry-After" 86 | "Server" 87 | "Transfer-Encoding" 88 | "Upgrade" 89 | "Upgrade-Insecure-Requests" 90 | "User-Agent" 91 | "Vary" 92 | "Via" 93 | "WWW-Authenticate" 94 | "Warning" 95 | "X-ATT-DeviceId" 96 | "X-Content-Duration" 97 | "X-Content-Security-Policy" 98 | "X-Content-Type-Options" 99 | "X-Correlation-ID" 100 | "X-Csrf-Token" 101 | "X-Forwarded-For" 102 | "X-Forwarded-Host" 103 | "X-Forwarded-Proto" 104 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/patches/upnphttp-fix.patch: -------------------------------------------------------------------------------- 1 | --- a/upnphttp.c 2020-11-24 10:53:50.000000000 -0800 2 | +++ b/upnphttp.c 2023-03-23 21:14:51.000000000 -0700 3 | @@ -62,6 +62,7 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | 9 | #include "config.h" 10 | #include "event.h" 11 | @@ -76,7 +77,6 @@ 12 | #include "image_utils.h" 13 | #include "log.h" 14 | #include "sql.h" 15 | -#include 16 | #include "tivo_utils.h" 17 | #include "tivo_commands.h" 18 | #include "clients.h" 19 | @@ -115,7 +115,7 @@ 20 | return NULL; 21 | memset(ret, 0, sizeof(struct upnphttp)); 22 | ret->ev = (struct event ){ .fd = s, .rdwr = EVENT_READ, .process = Process_upnphttp, .data = ret }; 23 | - event_module.add(&ret->ev); 24 | + /* event_module.add(&ret->ev); */ 25 | return ret; 26 | } 27 | 28 | @@ -123,11 +123,11 @@ 29 | CloseSocket_upnphttp(struct upnphttp * h) 30 | { 31 | 32 | - event_module.del(&h->ev, EV_FLAG_CLOSING); 33 | - if(close(h->ev.fd) < 0) 34 | - { 35 | - DPRINTF(E_ERROR, L_HTTP, "CloseSocket_upnphttp: close(%d): %s\n", h->ev.fd, strerror(errno)); 36 | - } 37 | + //event_module.del(&h->ev, EV_FLAG_CLOSING); 38 | + /* if(close(h->ev.fd) < 0) */ 39 | + /* { */ 40 | + /* DPRINTF(E_ERROR, L_HTTP, "CloseSocket_upnphttp: close(%d): %s\n", h->ev.fd, strerror(errno)); */ 41 | + /* } */ 42 | h->ev.fd = -1; 43 | h->state = 100; 44 | } 45 | @@ -146,7 +146,7 @@ 46 | } 47 | 48 | /* parse HttpHeaders of the REQUEST */ 49 | -static void 50 | +void 51 | ParseHttpHeaders(struct upnphttp * h) 52 | { 53 | int client = 0; 54 | @@ -664,7 +664,7 @@ 55 | 56 | /* ProcessHTTPPOST_upnphttp() 57 | * executes the SOAP query if it is possible */ 58 | -static void 59 | +void 60 | ProcessHTTPPOST_upnphttp(struct upnphttp * h) 61 | { 62 | if((h->req_buflen - h->req_contentoff) >= h->req_contentlen) 63 | @@ -833,7 +833,7 @@ 64 | 65 | /* Parse and process Http Query 66 | * called once all the HTTP headers have been received. */ 67 | -static void 68 | +void 69 | ProcessHttpQuery_upnphttp(struct upnphttp * h) 70 | { 71 | char HttpCommand[16]; 72 | -------------------------------------------------------------------------------- /src/minidlna-git/minissdp.h: -------------------------------------------------------------------------------- 1 | /* MiniUPnP project 2 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 3 | * 4 | * Copyright (c) 2006-2007, Thomas Bernard 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions are met: 9 | * * Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * * Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * * The name of the author may not be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | #ifndef __MINISSDP_H__ 30 | #define __MINISSDP_H__ 31 | 32 | int OpenAndConfSSDPReceiveSocket(void); 33 | 34 | int OpenAndConfSSDPNotifySocket(struct lan_addr_s *iface); 35 | 36 | void SendSSDPNotifies(int s, const char *host, unsigned short port, unsigned int lifetime); 37 | 38 | void ProcessSSDPRequest(struct event *ev); 39 | 40 | int SendSSDPGoodbyes(int s); 41 | 42 | int SubmitServicesToMiniSSDPD(const char *host, unsigned short port); 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/minissdp.h: -------------------------------------------------------------------------------- 1 | /* MiniUPnP project 2 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 3 | * 4 | * Copyright (c) 2006-2007, Thomas Bernard 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions are met: 9 | * * Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * * Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * * The name of the author may not be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | #ifndef __MINISSDP_H__ 30 | #define __MINISSDP_H__ 31 | 32 | int OpenAndConfSSDPReceiveSocket(void); 33 | 34 | int OpenAndConfSSDPNotifySocket(struct lan_addr_s *iface); 35 | 36 | void SendSSDPNotifies(int s, const char *host, unsigned short port, unsigned int lifetime); 37 | 38 | void ProcessSSDPRequest(struct event *ev); 39 | 40 | int SendSSDPGoodbyes(int s); 41 | 42 | int SubmitServicesToMiniSSDPD(const char *host, unsigned short port); 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /src/minidlna-git/getifaddr.h: -------------------------------------------------------------------------------- 1 | /* MiniUPnP project 2 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 3 | * 4 | * Copyright (c) 2006, Thomas Bernard 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions are met: 9 | * * Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * * Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * * The name of the author may not be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | #ifndef __GETIFADDR_H__ 30 | #define __GETIFADDR_H__ 31 | #include 32 | 33 | #define MACADDR_IS_ZERO(x) \ 34 | ((x[0] == 0x00) && \ 35 | (x[1] == 0x00) && \ 36 | (x[2] == 0x00) && \ 37 | (x[3] == 0x00) && \ 38 | (x[4] == 0x00) && \ 39 | (x[5] == 0x00)) 40 | 41 | int getsyshwaddr(char *buf, int len); 42 | int get_remote_mac(struct in_addr ip_addr, unsigned char *mac); 43 | void reload_ifaces(int notify); 44 | 45 | int OpenAndConfMonitorSocket(); 46 | void ProcessMonitorEvent(struct event *); 47 | 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/getifaddr.h: -------------------------------------------------------------------------------- 1 | /* MiniUPnP project 2 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 3 | * 4 | * Copyright (c) 2006, Thomas Bernard 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions are met: 9 | * * Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * * Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * * The name of the author may not be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | #ifndef __GETIFADDR_H__ 30 | #define __GETIFADDR_H__ 31 | #include 32 | 33 | #define MACADDR_IS_ZERO(x) \ 34 | ((x[0] == 0x00) && \ 35 | (x[1] == 0x00) && \ 36 | (x[2] == 0x00) && \ 37 | (x[3] == 0x00) && \ 38 | (x[4] == 0x00) && \ 39 | (x[5] == 0x00)) 40 | 41 | int getsyshwaddr(char *buf, int len); 42 | int get_remote_mac(struct in_addr ip_addr, unsigned char *mac); 43 | void reload_ifaces(int notify); 44 | 45 | int OpenAndConfMonitorSocket(); 46 | void ProcessMonitorEvent(struct event *); 47 | 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /src/minidlna-git/minidlnad.8: -------------------------------------------------------------------------------- 1 | .\" minidlnad man page 2 | .TH minidlnad 8 "October 2012" 3 | .SH NAME 4 | minidlnad \- MiniDLNA DLNA/UPnP-AV Server 5 | .SH SYNOPSIS 6 | minidlnad options 7 | 8 | .SH DESCRIPTION 9 | .PP 10 | .B minidlna 11 | is a lightweight but very functional DLNA/UPnP-AV server allowing easy 12 | sharing of your media files including pictures to any capable device or 13 | client on your local wired and wireless network. Common PC software like 14 | totem is a good lightweight and fast choice for Linux/BSD; more fully 15 | featured software for Linux, Windows and MAC is XBMC, also Mediahouse 16 | on Android, and any media sharing capable DVR/TV etc. 17 | 18 | .SH OPTIONS 19 | .PP 20 | .B minidlna's 21 | options are normally set from the global /etc/minidlna.conf file. 22 | .nf 23 | But there may be times when you need to temporarily alter some of these options, 24 | you can do this by running minidlna with the following command line switches. 25 | .fi 26 | 27 | .IP "\fB\-R\fR \fIRescan\fR" 28 | This forces minidlna to rescan all of the media_dir directories. 29 | 30 | .IP "\fB\-f\fR \fIconfig_file\fR" 31 | Run minidlna with a different configuration file than the global default. 32 | 33 | .IP "\fB\-p\fR \fIport\fR" 34 | Allows to run minidlna on a different port. 35 | 36 | .IP "\fB\-w\fR \fIpresentation_url\fR" 37 | Change the default presentation url address. 38 | 39 | .IP "\fB\-d\fR \fIdebug\fR" 40 | minidlna will run in the foreground with debug output. 41 | 42 | .IP "\fB\-P\fR \fIpid_filename\fR" 43 | Specify a location for the PID file. 44 | 45 | .IP "\fB\-m\fR \fImodel\fR" 46 | Force minidlna to report a specific model number. 47 | 48 | .IP "\fB\-s\fR \fIserial\fR" 49 | Force minidlna to report a specific serial number. 50 | 51 | .IP "\fB\-t\fR \fInotify_interval\fR" 52 | Change the notify interval, in seconds. Defaults to 895 seconds. 53 | 54 | .IP "\fB\-h\fR \fIhelp\fR" 55 | Show basic switch options for running minidlna. 56 | 57 | .IP "\fB\-V\fR \fIVersion\fR" 58 | Shows the program version number and exits. 59 | 60 | 61 | .SH VERSION 62 | This man page corresponds to minidlna version 1.1.0 63 | 64 | .SH AUTHOR 65 | .nf 66 | minidlna developed by Justin Maggard https://sourceforge.net/projects/minidlna/ 67 | man page written by Noel Butler 68 | .fi 69 | 70 | .SH FILES 71 | /usr/sbin/minidlnad 72 | 73 | .SH SEE ALSO 74 | minidlna.conf(5) 75 | 76 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/minidlnad.8: -------------------------------------------------------------------------------- 1 | .\" minidlnad man page 2 | .TH minidlnad 8 "October 2012" 3 | .SH NAME 4 | minidlnad \- MiniDLNA DLNA/UPnP-AV Server 5 | .SH SYNOPSIS 6 | minidlnad options 7 | 8 | .SH DESCRIPTION 9 | .PP 10 | .B minidlna 11 | is a lightweight but very functional DLNA/UPnP-AV server allowing easy 12 | sharing of your media files including pictures to any capable device or 13 | client on your local wired and wireless network. Common PC software like 14 | totem is a good lightweight and fast choice for Linux/BSD; more fully 15 | featured software for Linux, Windows and MAC is XBMC, also Mediahouse 16 | on Android, and any media sharing capable DVR/TV etc. 17 | 18 | .SH OPTIONS 19 | .PP 20 | .B minidlna's 21 | options are normally set from the global /etc/minidlna.conf file. 22 | .nf 23 | But there may be times when you need to temporarily alter some of these options, 24 | you can do this by running minidlna with the following command line switches. 25 | .fi 26 | 27 | .IP "\fB\-R\fR \fIRescan\fR" 28 | This forces minidlna to rescan all of the media_dir directories. 29 | 30 | .IP "\fB\-f\fR \fIconfig_file\fR" 31 | Run minidlna with a different configuration file than the global default. 32 | 33 | .IP "\fB\-p\fR \fIport\fR" 34 | Allows to run minidlna on a different port. 35 | 36 | .IP "\fB\-w\fR \fIpresentation_url\fR" 37 | Change the default presentation url address. 38 | 39 | .IP "\fB\-d\fR \fIdebug\fR" 40 | minidlna will run in the foreground with debug output. 41 | 42 | .IP "\fB\-P\fR \fIpid_filename\fR" 43 | Specify a location for the PID file. 44 | 45 | .IP "\fB\-m\fR \fImodel\fR" 46 | Force minidlna to report a specific model number. 47 | 48 | .IP "\fB\-s\fR \fIserial\fR" 49 | Force minidlna to report a specific serial number. 50 | 51 | .IP "\fB\-t\fR \fInotify_interval\fR" 52 | Change the notify interval, in seconds. Defaults to 895 seconds. 53 | 54 | .IP "\fB\-h\fR \fIhelp\fR" 55 | Show basic switch options for running minidlna. 56 | 57 | .IP "\fB\-V\fR \fIVersion\fR" 58 | Shows the program version number and exits. 59 | 60 | 61 | .SH VERSION 62 | This man page corresponds to minidlna version 1.1.0 63 | 64 | .SH AUTHOR 65 | .nf 66 | minidlna developed by Justin Maggard https://sourceforge.net/projects/minidlna/ 67 | man page written by Noel Butler 68 | .fi 69 | 70 | .SH FILES 71 | /usr/sbin/minidlnad 72 | 73 | .SH SEE ALSO 74 | minidlna.conf(5) 75 | 76 | -------------------------------------------------------------------------------- /src/minidlna-git/po/ko.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: mangg \n" 13 | "Language-Team: Korean\n" 14 | "Language: ko\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "알수 없는 날짜" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "알수 없는 카메라" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "-모든 앨범-" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "알수 없는 앨범" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- 모든 아티스트 -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "알수없는 아티스트" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "음악" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "모든 음악" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "장르" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "아티스트" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "앨범" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "폴더" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "재생 목록" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "최근에 추가" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "비디오" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "모든 비디오" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "사진" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "모든 사진" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "촬영 날짜" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "카메라" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "폴더 보기" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "검색중 %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "%s 검색 종료. (%llu 파일)\n" 112 | -------------------------------------------------------------------------------- /src/minidlna-git/minidlnapath.h: -------------------------------------------------------------------------------- 1 | /* MiniUPnP project 2 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 3 | * 4 | * Copyright (c) 2006-2008, Thomas Bernard 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions are met: 9 | * * Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * * Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * * The name of the author may not be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | #ifndef __MINIDLNAPATH_H__ 30 | #define __MINIDLNAPATH_H__ 31 | 32 | #include "config.h" 33 | 34 | /* Paths and other URLs in the minidlna http server */ 35 | 36 | #define ROOTDESC_PATH "/rootDesc.xml" 37 | 38 | #define CONTENTDIRECTORY_PATH "/ContentDir.xml" 39 | #define CONTENTDIRECTORY_CONTROLURL "/ctl/ContentDir" 40 | #define CONTENTDIRECTORY_EVENTURL "/evt/ContentDir" 41 | 42 | #define CONNECTIONMGR_PATH "/ConnectionMgr.xml" 43 | #define CONNECTIONMGR_CONTROLURL "/ctl/ConnectionMgr" 44 | #define CONNECTIONMGR_EVENTURL "/evt/ConnectionMgr" 45 | 46 | #define X_MS_MEDIARECEIVERREGISTRAR_PATH "/X_MS_MediaReceiverRegistrar.xml" 47 | #define X_MS_MEDIARECEIVERREGISTRAR_CONTROLURL "/ctl/X_MS_MediaReceiverRegistrar" 48 | #define X_MS_MEDIARECEIVERREGISTRAR_EVENTURL "/evt/X_MS_MediaReceiverRegistrar" 49 | 50 | #endif 51 | 52 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/ko.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: mangg \n" 13 | "Language-Team: Korean\n" 14 | "Language: ko\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "알수 없는 날짜" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "알수 없는 카메라" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "-모든 앨범-" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "알수 없는 앨범" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- 모든 아티스트 -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "알수없는 아티스트" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "음악" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "모든 음악" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "장르" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "아티스트" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "앨범" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "폴더" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "재생 목록" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "최근에 추가" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "비디오" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "모든 비디오" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "사진" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "모든 사진" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "촬영 날짜" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "카메라" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "폴더 보기" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "검색중 %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "%s 검색 종료. (%llu 파일)\n" 112 | -------------------------------------------------------------------------------- /src/minidlna-git/po/ja.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-07-23 15:57-0800\n" 12 | "Last-Translator: r2d2 \n" 13 | "Language-Team: Japanese\n" 14 | "Language: ja\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "日付不明" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "カメラ名不明" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- すべてのアルバム -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "アルバム名不明" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- すべてのアーティスト -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "アーティスト名不明" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "ミュージック" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "すべてのミュージック" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "ジャンル" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "アーティスト" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "アルバム" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "フォルダ" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "プレイリスト" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "最近追加された" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "ビデオ" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "すべてのビデオ" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "写真" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "すべての写真" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "撮影日" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "カメラ" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "フォルダ" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "%s を検索中\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "%s (%llu ファイル) の検索終了!\n" 112 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/minidlnapath.h: -------------------------------------------------------------------------------- 1 | /* MiniUPnP project 2 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 3 | * 4 | * Copyright (c) 2006-2008, Thomas Bernard 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions are met: 9 | * * Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * * Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * * The name of the author may not be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | #ifndef __MINIDLNAPATH_H__ 30 | #define __MINIDLNAPATH_H__ 31 | 32 | #include "config.h" 33 | 34 | /* Paths and other URLs in the minidlna http server */ 35 | 36 | #define ROOTDESC_PATH "/rootDesc.xml" 37 | 38 | #define CONTENTDIRECTORY_PATH "/ContentDir.xml" 39 | #define CONTENTDIRECTORY_CONTROLURL "/ctl/ContentDir" 40 | #define CONTENTDIRECTORY_EVENTURL "/evt/ContentDir" 41 | 42 | #define CONNECTIONMGR_PATH "/ConnectionMgr.xml" 43 | #define CONNECTIONMGR_CONTROLURL "/ctl/ConnectionMgr" 44 | #define CONNECTIONMGR_EVENTURL "/evt/ConnectionMgr" 45 | 46 | #define X_MS_MEDIARECEIVERREGISTRAR_PATH "/X_MS_MediaReceiverRegistrar.xml" 47 | #define X_MS_MEDIARECEIVERREGISTRAR_CONTROLURL "/ctl/X_MS_MediaReceiverRegistrar" 48 | #define X_MS_MEDIARECEIVERREGISTRAR_EVENTURL "/evt/X_MS_MediaReceiverRegistrar" 49 | 50 | #endif 51 | 52 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/ja.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-07-23 15:57-0800\n" 12 | "Last-Translator: r2d2 \n" 13 | "Language-Team: Japanese\n" 14 | "Language: ja\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "日付不明" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "カメラ名不明" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- すべてのアルバム -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "アルバム名不明" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- すべてのアーティスト -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "アーティスト名不明" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "ミュージック" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "すべてのミュージック" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "ジャンル" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "アーティスト" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "アルバム" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "フォルダ" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "プレイリスト" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "最近追加された" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "ビデオ" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "すべてのビデオ" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "写真" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "すべての写真" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "撮影日" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "カメラ" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "フォルダ" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "%s を検索中\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "%s (%llu ファイル) の検索終了!\n" 112 | -------------------------------------------------------------------------------- /src/minidlna-git/scanner.h: -------------------------------------------------------------------------------- 1 | /* Media file scanner 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2008-2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #ifndef __SCANNER_H__ 25 | #define __SCANNER_H__ 26 | 27 | /* Try to be generally PlaysForSure compatible by using similar IDs */ 28 | #define BROWSEDIR_ID "64" 29 | 30 | #define MUSIC_ID "1" 31 | #define MUSIC_ALL_ID "1$4" 32 | #define MUSIC_GENRE_ID "1$5" 33 | #define MUSIC_ARTIST_ID "1$6" 34 | #define MUSIC_ALBUM_ID "1$7" 35 | #define MUSIC_PLIST_ID "1$F" 36 | #define MUSIC_DIR_ID "1$14" 37 | #define MUSIC_CONTRIB_ARTIST_ID "1$100" 38 | #define MUSIC_ALBUM_ARTIST_ID "1$107" 39 | #define MUSIC_COMPOSER_ID "1$108" 40 | #define MUSIC_RATING_ID "1$101" 41 | 42 | #define VIDEO_ID "2" 43 | #define VIDEO_ALL_ID "2$8" 44 | #define VIDEO_GENRE_ID "2$9" 45 | #define VIDEO_ACTOR_ID "2$A" 46 | #define VIDEO_SERIES_ID "2$E" 47 | #define VIDEO_PLIST_ID "2$10" 48 | #define VIDEO_DIR_ID "2$15" 49 | #define VIDEO_RATING_ID "2$200" 50 | 51 | #define IMAGE_ID "3" 52 | #define IMAGE_ALL_ID "3$B" 53 | #define IMAGE_DATE_ID "3$C" 54 | #define IMAGE_ALBUM_ID "3$D" 55 | #define IMAGE_CAMERA_ID "3$D2" // PlaysForSure == Keyword 56 | #define IMAGE_PLIST_ID "3$11" 57 | #define IMAGE_DIR_ID "3$16" 58 | #define IMAGE_RATING_ID "3$300" 59 | 60 | extern int valid_cache; 61 | 62 | int 63 | is_video(const char *file); 64 | 65 | int 66 | is_audio(const char *file); 67 | 68 | int 69 | is_image(const char *file); 70 | 71 | int64_t 72 | get_next_available_id(const char *table, const char *parentID); 73 | 74 | int64_t 75 | insert_directory(const char *name, const char *path, const char *base, const char *parentID, int objectID); 76 | 77 | int 78 | insert_file(const char *name, const char *path, const char *parentID, int object, media_types dir_types); 79 | 80 | int 81 | CreateDatabase(void); 82 | 83 | void 84 | start_scanner(); 85 | 86 | #endif 87 | -------------------------------------------------------------------------------- /src/minidlna-git/po/nb.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: samundsen \n" 13 | "Language-Team: Norwegian\n" 14 | "Language: nb\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Ukjent dato" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Ukjent kamera" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Alle album -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Ukjent album" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Alle artister -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Ukjent artist" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Musikk" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "All musikk" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Genre" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Artist" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Album" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Mapper" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Spillelister" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "Nylig lagt til" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Video" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Alle videoer" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Bilder" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Alle bilder" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Fotodato" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Kamera" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Vis mapper" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Søker %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Søk %s ferdig (%llu filer)!\n" 112 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/scanner.h: -------------------------------------------------------------------------------- 1 | /* Media file scanner 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Justin Maggard 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2008-2009 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | #ifndef __SCANNER_H__ 25 | #define __SCANNER_H__ 26 | 27 | /* Try to be generally PlaysForSure compatible by using similar IDs */ 28 | #define BROWSEDIR_ID "64" 29 | 30 | #define MUSIC_ID "1" 31 | #define MUSIC_ALL_ID "1$4" 32 | #define MUSIC_GENRE_ID "1$5" 33 | #define MUSIC_ARTIST_ID "1$6" 34 | #define MUSIC_ALBUM_ID "1$7" 35 | #define MUSIC_PLIST_ID "1$F" 36 | #define MUSIC_DIR_ID "1$14" 37 | #define MUSIC_CONTRIB_ARTIST_ID "1$100" 38 | #define MUSIC_ALBUM_ARTIST_ID "1$107" 39 | #define MUSIC_COMPOSER_ID "1$108" 40 | #define MUSIC_RATING_ID "1$101" 41 | 42 | #define VIDEO_ID "2" 43 | #define VIDEO_ALL_ID "2$8" 44 | #define VIDEO_GENRE_ID "2$9" 45 | #define VIDEO_ACTOR_ID "2$A" 46 | #define VIDEO_SERIES_ID "2$E" 47 | #define VIDEO_PLIST_ID "2$10" 48 | #define VIDEO_DIR_ID "2$15" 49 | #define VIDEO_RATING_ID "2$200" 50 | 51 | #define IMAGE_ID "3" 52 | #define IMAGE_ALL_ID "3$B" 53 | #define IMAGE_DATE_ID "3$C" 54 | #define IMAGE_ALBUM_ID "3$D" 55 | #define IMAGE_CAMERA_ID "3$D2" // PlaysForSure == Keyword 56 | #define IMAGE_PLIST_ID "3$11" 57 | #define IMAGE_DIR_ID "3$16" 58 | #define IMAGE_RATING_ID "3$300" 59 | 60 | extern int valid_cache; 61 | 62 | int 63 | is_video(const char *file); 64 | 65 | int 66 | is_audio(const char *file); 67 | 68 | int 69 | is_image(const char *file); 70 | 71 | int64_t 72 | get_next_available_id(const char *table, const char *parentID); 73 | 74 | int64_t 75 | insert_directory(const char *name, const char *path, const char *base, const char *parentID, int objectID); 76 | 77 | int 78 | insert_file(const char *name, const char *path, const char *parentID, int object, media_types dir_types); 79 | 80 | int 81 | CreateDatabase(void); 82 | 83 | void 84 | start_scanner(); 85 | 86 | #endif 87 | -------------------------------------------------------------------------------- /src/minidlna-git/po/da.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: ljensen \n" 13 | "Language-Team: Danish\n" 14 | "Language: da\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Ukendt Dato" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Ukendt kamera" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Alle Album -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Ukendt Album" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Alle kunstnere -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Ukendt Kunstner" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Musik" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "Al Musik" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Genre" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Kunstner" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Album" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Mapper" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Afspilningslister" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "Nylig tilføjet" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Film" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Alle Film" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Billeder" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Alle Billeder" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Foto-dato" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Kamera" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Vise Mapper" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Søger %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Søgning %s slut (%llu filer)!\n" 112 | -------------------------------------------------------------------------------- /src/minidlna-git/po/sv.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: frejac \n" 13 | "Language-Team: Swedish\n" 14 | "Language: sv\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Okänt datum" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Okänd kamera" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Alla album -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Okänt album" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Alla artister -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Okänd artist" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Musik" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "All Musik" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Genre" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Artist" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Album" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Mappar" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Spelningslistor" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "nyligen tillagda" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Film" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Alla filmer" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Bilder" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Alla bilder" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Fotodatum" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Kamera" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Utforska mappar" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Söker %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Avsökning %s slutförd (%llu filer)!\n" 112 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/nb.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: samundsen \n" 13 | "Language-Team: Norwegian\n" 14 | "Language: nb\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Ukjent dato" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Ukjent kamera" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Alle album -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Ukjent album" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Alle artister -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Ukjent artist" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Musikk" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "All musikk" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Genre" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Artist" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Album" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Mapper" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Spillelister" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "Nylig lagt til" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Video" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Alle videoer" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Bilder" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Alle bilder" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Fotodato" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Kamera" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Vis mapper" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Søker %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Søk %s ferdig (%llu filer)!\n" 112 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/da.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: ljensen \n" 13 | "Language-Team: Danish\n" 14 | "Language: da\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Ukendt Dato" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Ukendt kamera" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Alle Album -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Ukendt Album" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Alle kunstnere -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Ukendt Kunstner" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Musik" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "Al Musik" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Genre" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Kunstner" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Album" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Mapper" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Afspilningslister" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "Nylig tilføjet" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Film" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Alle Film" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Billeder" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Alle Billeder" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Foto-dato" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Kamera" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Vise Mapper" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Søger %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Søgning %s slut (%llu filer)!\n" 112 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/sv.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: frejac \n" 13 | "Language-Team: Swedish\n" 14 | "Language: sv\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Okänt datum" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Okänd kamera" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Alla album -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Okänt album" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Alla artister -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Okänd artist" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Musik" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "All Musik" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Genre" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Artist" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Album" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Mappar" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Spelningslistor" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "nyligen tillagda" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Film" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Alla filmer" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Bilder" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Alla bilder" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Fotodatum" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Kamera" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Utforska mappar" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Söker %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Avsökning %s slutförd (%llu filer)!\n" 112 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/Makefile.am: -------------------------------------------------------------------------------- 1 | # This file is part of MiniDLNA. 2 | # 3 | # MiniDLNA is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as 5 | # published by the Free Software Foundation; either version 2 of the 6 | # License, or (at your option) any later version. 7 | # 8 | # MiniDLNA is distributed in the hope that it will be useful, but WITHOUT 9 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 10 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 11 | # License for more details. 12 | # 13 | # You should have received a copy of the GNU Lesser General Public 14 | # License along with MiniDLNA; if not, write to the Free Software 15 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 16 | # USA. 17 | 18 | AM_CFLAGS = -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 19 | 20 | SUBDIRS=po 21 | 22 | sbin_PROGRAMS = minidlnad 23 | check_PROGRAMS = testupnpdescgen 24 | minidlnad_SOURCES = minidlna.c upnphttp.c upnpdescgen.c upnpsoap.c \ 25 | upnpreplyparse.c minixml.c clients.c \ 26 | getifaddr.c process.c upnpglobalvars.c \ 27 | options.c minissdp.c uuid.c upnpevents.c \ 28 | sql.c utils.c metadata.c scanner.c monitor.c \ 29 | tivo_utils.c tivo_beacon.c tivo_commands.c \ 30 | playlist.c image_utils.c albumart.c log.c \ 31 | containers.c avahi.c tagutils/tagutils.c 32 | 33 | if HAVE_KQUEUE 34 | minidlnad_SOURCES += kqueue.c monitor_kqueue.c 35 | else 36 | minidlnad_SOURCES += select.c 37 | endif 38 | 39 | if HAVE_VORBISFILE 40 | vorbislibs = -lvorbis -logg 41 | else 42 | if NEED_OGG 43 | flacogglibs = -logg 44 | endif 45 | endif 46 | 47 | if TIVO_SUPPORT 48 | if HAVE_AVAHI 49 | avahilibs = -lavahi-client -lavahi-common 50 | endif 51 | endif 52 | 53 | minidlnad_LDADD = \ 54 | @LIBJPEG_LIBS@ \ 55 | @LIBID3TAG_LIBS@ \ 56 | @LIBSQLITE3_LIBS@ \ 57 | @LIBAVFORMAT_LIBS@ \ 58 | @LIBEXIF_LIBS@ \ 59 | @LIBINTL@ \ 60 | @LIBICONV@ \ 61 | -lFLAC $(flacogglibs) $(vorbislibs) $(avahilibs) 62 | 63 | testupnpdescgen_SOURCES = testupnpdescgen.c upnpdescgen.c 64 | testupnpdescgen_LDADD = \ 65 | @LIBJPEG_LIBS@ \ 66 | @LIBID3TAG_LIBS@ \ 67 | @LIBSQLITE3_LIBS@ \ 68 | @LIBAVFORMAT_LIBS@ \ 69 | @LIBAVUTIL_LIBS@ \ 70 | @LIBEXIF_LIBS@ \ 71 | -lFLAC $(flacogglibs) $(vorbislibs) $(avahilibs) 72 | 73 | SUFFIXES = .tmpl . 74 | 75 | .tmpl: 76 | sed -e s@:SBINDIR:@${sbindir}@ <$< >$@ 77 | 78 | GENERATED_FILES = \ 79 | linux/minidlna.init.d.script 80 | 81 | TEMPLATES = \ 82 | linux/minidlna.init.d.script.tmpl 83 | 84 | CLEANFILES = $(GENERATED_FILES) 85 | 86 | ACLOCAL_AMFLAGS = -I m4 87 | 88 | EXTRA_DIST = m4/ChangeLog $(TEMPLATES) 89 | noinst_DATA = $(GENERATED_FILES) 90 | -------------------------------------------------------------------------------- /src/minidlna-git/linux/inotify-syscalls.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_INOTIFY_SYSCALLS_H 2 | #define _LINUX_INOTIFY_SYSCALLS_H 3 | 4 | #include 5 | 6 | #if defined(__i386__) 7 | # define __NR_inotify_init 291 8 | # define __NR_inotify_add_watch 292 9 | # define __NR_inotify_rm_watch 293 10 | #elif defined(__x86_64__) 11 | # define __NR_inotify_init 253 12 | # define __NR_inotify_add_watch 254 13 | # define __NR_inotify_rm_watch 255 14 | #elif defined(__powerpc__) || defined(__powerpc64__) 15 | # define __NR_inotify_init 275 16 | # define __NR_inotify_add_watch 276 17 | # define __NR_inotify_rm_watch 277 18 | #elif defined (__mips__) 19 | # if _MIPS_SIM == _MIPS_SIM_ABI32 20 | # define __NR_inotify_init (__NR_Linux + 284) 21 | # define __NR_inotify_add_watch (__NR_Linux + 285) 22 | # define __NR_inotify_rm_watch (__NR_Linux + 286) 23 | # endif 24 | # if _MIPS_SIM == _MIPS_SIM_ABI64 25 | # define __NR_inotify_init (__NR_Linux + 243) 26 | # define __NR_inotify_add_watch (__NR_Linux + 243) 27 | # define __NR_inotify_rm_watch (__NR_Linux + 243) 28 | # endif 29 | # if _MIPS_SIM == _MIPS_SIM_NABI32 30 | # define __NR_inotify_init (__NR_Linux + 247) 31 | # define __NR_inotify_add_watch (__NR_Linux + 248) 32 | # define __NR_inotify_rm_watch (__NR_Linux + 249) 33 | # endif 34 | #elif defined (__ia64__) 35 | # define __NR_inotify_init 1277 36 | # define __NR_inotify_add_watch 1278 37 | # define __NR_inotify_rm_watch 1279 38 | #elif defined (__s390__) 39 | # define __NR_inotify_init 284 40 | # define __NR_inotify_add_watch 285 41 | # define __NR_inotify_rm_watch 286 42 | #elif defined (__alpha__) 43 | # define __NR_inotify_init 444 44 | # define __NR_inotify_add_watch 445 45 | # define __NR_inotify_rm_watch 446 46 | #elif defined (__sparc__) || defined (__sparc64__) 47 | # define __NR_inotify_init 151 48 | # define __NR_inotify_add_watch 152 49 | # define __NR_inotify_rm_watch 156 50 | #elif defined (__arm__) 51 | # define __NR_inotify_init (__NR_SYSCALL_BASE+316) 52 | # define __NR_inotify_add_watch (__NR_SYSCALL_BASE+317) 53 | # define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318) 54 | #elif defined (__sh__) 55 | # define __NR_inotify_init 290 56 | # define __NR_inotify_add_watch 291 57 | # define __NR_inotify_rm_watch 292 58 | #else 59 | # error "Unsupported architecture!" 60 | #endif 61 | 62 | static inline int inotify_init (void) 63 | { 64 | return syscall (__NR_inotify_init); 65 | } 66 | 67 | static inline int inotify_add_watch (int fd, const char *name, __u32 mask) 68 | { 69 | return syscall (__NR_inotify_add_watch, fd, name, mask); 70 | } 71 | 72 | static inline int inotify_rm_watch (int fd, __u32 wd) 73 | { 74 | return syscall (__NR_inotify_rm_watch, fd, wd); 75 | } 76 | 77 | #endif /* _LINUX_INOTIFY_SYSCALLS_H */ 78 | -------------------------------------------------------------------------------- /src/minidlna-git/po/nl.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: frejac \n" 13 | "Language-Team: Swedish\n" 14 | "Language: nl\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Datum onbekend" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Camera onbekend" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Alle albums -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Album onbekend" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Alle artiesten -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Artiest onbekend" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Muziek" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "Alle muziek bestanden" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Genre" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Artiest" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Album" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Mappen" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Afspeellijst" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "Nyligen tillagd" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Video" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Alle video bestanden" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Foto's" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Alle foto bestanden" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Opname datum" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Camera" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Mappen doorzoeken" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Zoeken %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Zoeken %s gereed (%llu files)!\n" 112 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/linux/inotify-syscalls.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_INOTIFY_SYSCALLS_H 2 | #define _LINUX_INOTIFY_SYSCALLS_H 3 | 4 | #include 5 | 6 | #if defined(__i386__) 7 | # define __NR_inotify_init 291 8 | # define __NR_inotify_add_watch 292 9 | # define __NR_inotify_rm_watch 293 10 | #elif defined(__x86_64__) 11 | # define __NR_inotify_init 253 12 | # define __NR_inotify_add_watch 254 13 | # define __NR_inotify_rm_watch 255 14 | #elif defined(__powerpc__) || defined(__powerpc64__) 15 | # define __NR_inotify_init 275 16 | # define __NR_inotify_add_watch 276 17 | # define __NR_inotify_rm_watch 277 18 | #elif defined (__mips__) 19 | # if _MIPS_SIM == _MIPS_SIM_ABI32 20 | # define __NR_inotify_init (__NR_Linux + 284) 21 | # define __NR_inotify_add_watch (__NR_Linux + 285) 22 | # define __NR_inotify_rm_watch (__NR_Linux + 286) 23 | # endif 24 | # if _MIPS_SIM == _MIPS_SIM_ABI64 25 | # define __NR_inotify_init (__NR_Linux + 243) 26 | # define __NR_inotify_add_watch (__NR_Linux + 243) 27 | # define __NR_inotify_rm_watch (__NR_Linux + 243) 28 | # endif 29 | # if _MIPS_SIM == _MIPS_SIM_NABI32 30 | # define __NR_inotify_init (__NR_Linux + 247) 31 | # define __NR_inotify_add_watch (__NR_Linux + 248) 32 | # define __NR_inotify_rm_watch (__NR_Linux + 249) 33 | # endif 34 | #elif defined (__ia64__) 35 | # define __NR_inotify_init 1277 36 | # define __NR_inotify_add_watch 1278 37 | # define __NR_inotify_rm_watch 1279 38 | #elif defined (__s390__) 39 | # define __NR_inotify_init 284 40 | # define __NR_inotify_add_watch 285 41 | # define __NR_inotify_rm_watch 286 42 | #elif defined (__alpha__) 43 | # define __NR_inotify_init 444 44 | # define __NR_inotify_add_watch 445 45 | # define __NR_inotify_rm_watch 446 46 | #elif defined (__sparc__) || defined (__sparc64__) 47 | # define __NR_inotify_init 151 48 | # define __NR_inotify_add_watch 152 49 | # define __NR_inotify_rm_watch 156 50 | #elif defined (__arm__) 51 | # define __NR_inotify_init (__NR_SYSCALL_BASE+316) 52 | # define __NR_inotify_add_watch (__NR_SYSCALL_BASE+317) 53 | # define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318) 54 | #elif defined (__sh__) 55 | # define __NR_inotify_init 290 56 | # define __NR_inotify_add_watch 291 57 | # define __NR_inotify_rm_watch 292 58 | #else 59 | # error "Unsupported architecture!" 60 | #endif 61 | 62 | static inline int inotify_init (void) 63 | { 64 | return syscall (__NR_inotify_init); 65 | } 66 | 67 | static inline int inotify_add_watch (int fd, const char *name, __u32 mask) 68 | { 69 | return syscall (__NR_inotify_add_watch, fd, name, mask); 70 | } 71 | 72 | static inline int inotify_rm_watch (int fd, __u32 wd) 73 | { 74 | return syscall (__NR_inotify_rm_watch, fd, wd); 75 | } 76 | 77 | #endif /* _LINUX_INOTIFY_SYSCALLS_H */ 78 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/nl.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: frejac \n" 13 | "Language-Team: Swedish\n" 14 | "Language: nl\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Datum onbekend" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Camera onbekend" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Alle albums -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Album onbekend" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Alle artiesten -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Artiest onbekend" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Muziek" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "Alle muziek bestanden" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Genre" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Artiest" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Album" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Mappen" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Afspeellijst" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "Nyligen tillagd" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Video" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Alle video bestanden" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Foto's" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Alle foto bestanden" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Opname datum" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Camera" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Mappen doorzoeken" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Zoeken %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Zoeken %s gereed (%llu files)!\n" 112 | -------------------------------------------------------------------------------- /src/minidlna-git/po/es.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: doubolplay1 \n" 13 | "Language-Team: Spanish\n" 14 | "Language: es\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Fecha desconocida" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Cámara desconocida" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Álbumes -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Álbum desconocido" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Artistas -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Artista desconocido" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Música" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "Toda la música" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Género" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Artista" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Álbum" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Carpetas" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Listas" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "Recientemente añadido" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Vídeo" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Todos los vídeos" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Fotos" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Todas las fotos" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Fecha en que se hizo" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Cámara" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Examinar carpetas" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Explorando %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Terminada la exploración de %s (%llu archivos)\n" 112 | -------------------------------------------------------------------------------- /src/minidlna-git/po/fr.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2013-06-12 16:56+0200\n" 12 | "Last-Translator: Benoît Knecht \n" 13 | "Language-Team: French\n" 14 | "Language: fr\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Date inconnue" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Caméra inconnue" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Tous les albums -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Album inconnu" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Tous les artistes -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Artiste inconnu" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Musique" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "Toute la musique" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Genre" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Artiste" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Album" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Dossiers" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Liste de lecture" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "Ajouts récents" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Vidéo" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Toutes les vidéos" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Images" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Toutes les images" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Date de prise" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Caméra" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Parcourir les dossiers" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Analyse de %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Analyse de %s terminée (%llu fichiers) !\n" 112 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/es.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-08-09 17:00-0700\n" 12 | "Last-Translator: doubolplay1 \n" 13 | "Language-Team: Spanish\n" 14 | "Language: es\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Fecha desconocida" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Cámara desconocida" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Álbumes -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Álbum desconocido" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Artistas -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Artista desconocido" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Música" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "Toda la música" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Género" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Artista" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Álbum" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Carpetas" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Listas" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "Recientemente añadido" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Vídeo" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Todos los vídeos" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Fotos" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Todas las fotos" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Fecha en que se hizo" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Cámara" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Examinar carpetas" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Explorando %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Terminada la exploración de %s (%llu archivos)\n" 112 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/fr.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2013-06-12 16:56+0200\n" 12 | "Last-Translator: Benoît Knecht \n" 13 | "Language-Team: French\n" 14 | "Language: fr\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: scanner.c:165 20 | msgid "Unknown Date" 21 | msgstr "Date inconnue" 22 | 23 | #: scanner.c:167 24 | msgid "Unknown Camera" 25 | msgstr "Caméra inconnue" 26 | 27 | #: scanner.c:277 28 | msgid "- All Albums -" 29 | msgstr "- Tous les albums -" 30 | 31 | #: scanner.c:285 scanner.c:292 scanner.c:296 32 | msgid "Unknown Album" 33 | msgstr "Album inconnu" 34 | 35 | #: scanner.c:318 36 | msgid "- All Artists -" 37 | msgstr "- Tous les artistes -" 38 | 39 | #: scanner.c:326 scanner.c:332 scanner.c:336 40 | msgid "Unknown Artist" 41 | msgstr "Artiste inconnu" 42 | 43 | #: scanner.c:528 44 | msgid "Music" 45 | msgstr "Musique" 46 | 47 | #: scanner.c:529 48 | msgid "All Music" 49 | msgstr "Toute la musique" 50 | 51 | #: scanner.c:530 52 | msgid "Genre" 53 | msgstr "Genre" 54 | 55 | #: scanner.c:531 56 | msgid "Artist" 57 | msgstr "Artiste" 58 | 59 | #: scanner.c:532 60 | msgid "Album" 61 | msgstr "Album" 62 | 63 | #: scanner.c:533 scanner.c:538 scanner.c:544 64 | msgid "Folders" 65 | msgstr "Dossiers" 66 | 67 | #: scanner.c:534 68 | msgid "Playlists" 69 | msgstr "Liste de lecture" 70 | 71 | #: scanner.c:598 72 | msgid "Recently Added" 73 | msgstr "Ajouts récents" 74 | 75 | #: scanner.c:536 76 | msgid "Video" 77 | msgstr "Vidéo" 78 | 79 | #: scanner.c:537 80 | msgid "All Video" 81 | msgstr "Toutes les vidéos" 82 | 83 | #: scanner.c:540 84 | msgid "Pictures" 85 | msgstr "Images" 86 | 87 | #: scanner.c:541 88 | msgid "All Pictures" 89 | msgstr "Toutes les images" 90 | 91 | #: scanner.c:542 92 | msgid "Date Taken" 93 | msgstr "Date de prise" 94 | 95 | #: scanner.c:543 96 | msgid "Camera" 97 | msgstr "Caméra" 98 | 99 | #: scanner.c:546 100 | msgid "Browse Folders" 101 | msgstr "Parcourir les dossiers" 102 | 103 | #: scanner.c:690 104 | #, c-format 105 | msgid "Scanning %s\n" 106 | msgstr "Analyse de %s\n" 107 | 108 | #: scanner.c:766 109 | #, c-format 110 | msgid "Scanning %s finished (%llu files)!\n" 111 | msgstr "Analyse de %s terminée (%llu fichiers) !\n" 112 | -------------------------------------------------------------------------------- /src/minidlna-git/Makefile.am: -------------------------------------------------------------------------------- 1 | # This file is part of MiniDLNA. 2 | # 3 | # MiniDLNA is free software; you can redistribute it and/or modify it 4 | # under the terms of the GNU Lesser General Public License as 5 | # published by the Free Software Foundation; either version 2 of the 6 | # License, or (at your option) any later version. 7 | # 8 | # MiniDLNA is distributed in the hope that it will be useful, but WITHOUT 9 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 10 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 11 | # License for more details. 12 | # 13 | # You should have received a copy of the GNU Lesser General Public 14 | # License along with MiniDLNA; if not, write to the Free Software 15 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 16 | # USA. 17 | 18 | AM_CFLAGS = -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 19 | 20 | SUBDIRS=po 21 | 22 | sbin_PROGRAMS = minidlnad 23 | check_PROGRAMS = testupnpdescgen 24 | minidlnad_SOURCES = minidlna.c upnphttp.c upnpdescgen.c upnpsoap.c \ 25 | upnpreplyparse.c minixml.c clients.c \ 26 | getifaddr.c process.c upnpglobalvars.c \ 27 | options.c minissdp.c uuid.c upnpevents.c \ 28 | sql.c utils.c metadata.c scanner.c monitor.c \ 29 | tivo_utils.c tivo_beacon.c tivo_commands.c \ 30 | playlist.c image_utils.c albumart.c log.c \ 31 | containers.c avahi.c tagutils/tagutils.c 32 | 33 | if HAVE_KQUEUE 34 | minidlnad_SOURCES += kqueue.c monitor_kqueue.c 35 | else 36 | minidlnad_SOURCES += select.c 37 | endif 38 | 39 | if HAVE_INOTIFY 40 | minidlnad_SOURCES += monitor_inotify.c 41 | endif 42 | 43 | if HAVE_VORBISFILE 44 | vorbislibs = -lvorbis -logg 45 | else 46 | if NEED_OGG 47 | flacogglibs = -logg 48 | endif 49 | endif 50 | 51 | if TIVO_SUPPORT 52 | if HAVE_AVAHI 53 | avahilibs = -lavahi-client -lavahi-common 54 | endif 55 | endif 56 | 57 | minidlnad_LDADD = \ 58 | @LIBJPEG_LIBS@ \ 59 | @LIBID3TAG_LIBS@ \ 60 | @LIBSQLITE3_LIBS@ \ 61 | @LIBAVFORMAT_LIBS@ \ 62 | @LIBEXIF_LIBS@ \ 63 | @LIBINTL@ \ 64 | @LIBICONV@ \ 65 | -lFLAC $(flacogglibs) $(vorbislibs) $(avahilibs) 66 | 67 | testupnpdescgen_SOURCES = testupnpdescgen.c upnpdescgen.c 68 | testupnpdescgen_LDADD = \ 69 | @LIBJPEG_LIBS@ \ 70 | @LIBID3TAG_LIBS@ \ 71 | @LIBSQLITE3_LIBS@ \ 72 | @LIBAVFORMAT_LIBS@ \ 73 | @LIBAVUTIL_LIBS@ \ 74 | @LIBEXIF_LIBS@ \ 75 | -lFLAC $(flacogglibs) $(vorbislibs) $(avahilibs) 76 | 77 | SUFFIXES = .tmpl . 78 | 79 | .tmpl: 80 | sed -e s@:SBINDIR:@${sbindir}@ <$< >$@ 81 | 82 | GENERATED_FILES = \ 83 | linux/minidlna.init.d.script 84 | 85 | TEMPLATES = \ 86 | linux/minidlna.init.d.script.tmpl 87 | 88 | CLEANFILES = $(GENERATED_FILES) 89 | 90 | ACLOCAL_AMFLAGS = -I m4 91 | 92 | EXTRA_DIST = m4/ChangeLog $(TEMPLATES) 93 | noinst_DATA = $(GENERATED_FILES) 94 | -------------------------------------------------------------------------------- /src/minidlna-git/minixml.h: -------------------------------------------------------------------------------- 1 | /* minimal xml parser 2 | * 3 | * Project : miniupnp 4 | * Website : http://miniupnp.free.fr/ 5 | * Author : Thomas Bernard 6 | * 7 | * Copyright (c) 2005, Thomas Bernard 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without 11 | * modification, are permitted provided that the following conditions are met: 12 | * * Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * * Redistributions in binary form must reproduce the above copyright 15 | * notice, this list of conditions and the following disclaimer in the 16 | * documentation and/or other materials provided with the distribution. 17 | * * The name of the author may not be used to endorse or promote products 18 | * derived from this software without specific prior written permission. 19 | * 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 | * POSSIBILITY OF SUCH DAMAGE. 31 | */ 32 | #ifndef __MINIXML_H__ 33 | #define __MINIXML_H__ 34 | #include 35 | #define IS_WHITE_SPACE(c) ((c==' ') || (c=='\t') || (c=='\r') || (c=='\n')) 36 | 37 | /* if a callback function pointer is set to NULL, 38 | * the function is not called */ 39 | struct xmlparser { 40 | const char *xmlstart; 41 | const char *xmlend; 42 | const char *xml; /* pointer to current character */ 43 | int xmlsize; 44 | uint32_t flags; 45 | void * data; 46 | void (*starteltfunc) (void *, const char *, int); 47 | void (*endeltfunc) (void *, const char *, int); 48 | void (*datafunc) (void *, const char *, int); 49 | void (*attfunc) (void *, const char *, int, const char *, int); 50 | }; 51 | 52 | /* parsexml() 53 | * the xmlparser structure must be initialized before the call 54 | * the following structure members have to be initialized : 55 | * xmlstart, xmlsize, data, *func 56 | * xml is for internal usage, xmlend is computed automatically */ 57 | void parsexml(struct xmlparser *); 58 | 59 | #endif 60 | 61 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/minixml.h: -------------------------------------------------------------------------------- 1 | /* minimal xml parser 2 | * 3 | * Project : miniupnp 4 | * Website : http://miniupnp.free.fr/ 5 | * Author : Thomas Bernard 6 | * 7 | * Copyright (c) 2005, Thomas Bernard 8 | * All rights reserved. 9 | * 10 | * Redistribution and use in source and binary forms, with or without 11 | * modification, are permitted provided that the following conditions are met: 12 | * * Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * * Redistributions in binary form must reproduce the above copyright 15 | * notice, this list of conditions and the following disclaimer in the 16 | * documentation and/or other materials provided with the distribution. 17 | * * The name of the author may not be used to endorse or promote products 18 | * derived from this software without specific prior written permission. 19 | * 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 | * POSSIBILITY OF SUCH DAMAGE. 31 | */ 32 | #ifndef __MINIXML_H__ 33 | #define __MINIXML_H__ 34 | #include 35 | #define IS_WHITE_SPACE(c) ((c==' ') || (c=='\t') || (c=='\r') || (c=='\n')) 36 | 37 | /* if a callback function pointer is set to NULL, 38 | * the function is not called */ 39 | struct xmlparser { 40 | const char *xmlstart; 41 | const char *xmlend; 42 | const char *xml; /* pointer to current character */ 43 | int xmlsize; 44 | uint32_t flags; 45 | void * data; 46 | void (*starteltfunc) (void *, const char *, int); 47 | void (*endeltfunc) (void *, const char *, int); 48 | void (*datafunc) (void *, const char *, int); 49 | void (*attfunc) (void *, const char *, int, const char *, int); 50 | }; 51 | 52 | /* parsexml() 53 | * the xmlparser structure must be initialized before the call 54 | * the following structure members have to be initialized : 55 | * xmlstart, xmlsize, data, *func 56 | * xml is for internal usage, xmlend is computed automatically */ 57 | void parsexml(struct xmlparser *); 58 | 59 | #endif 60 | 61 | -------------------------------------------------------------------------------- /src/minidlna-git/po/it.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-11-01 10:04+0100\n" 12 | "Last-Translator: Andrea Musuruane \n" 13 | "Language-Team: Italian\n" 14 | "Language: it\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Poedit-Language: Italian\n" 19 | "X-Poedit-Country: ITALY\n" 20 | 21 | #: scanner.c:165 22 | msgid "Unknown Date" 23 | msgstr "Data sconosciuta" 24 | 25 | #: scanner.c:167 26 | msgid "Unknown Camera" 27 | msgstr "Fotocamera sconosciuta" 28 | 29 | #: scanner.c:277 30 | msgid "- All Albums -" 31 | msgstr "- Tutti gli album -" 32 | 33 | #: scanner.c:285 scanner.c:292 scanner.c:296 34 | msgid "Unknown Album" 35 | msgstr "Album sconosciuto" 36 | 37 | #: scanner.c:318 38 | msgid "- All Artists -" 39 | msgstr "- Tutti gli artisti -" 40 | 41 | #: scanner.c:326 scanner.c:332 scanner.c:336 42 | msgid "Unknown Artist" 43 | msgstr "Artista sconosciuto" 44 | 45 | #: scanner.c:528 46 | msgid "Music" 47 | msgstr "Musica" 48 | 49 | #: scanner.c:529 50 | msgid "All Music" 51 | msgstr "Tutta la musica" 52 | 53 | #: scanner.c:530 54 | msgid "Genre" 55 | msgstr "Genere" 56 | 57 | #: scanner.c:531 58 | msgid "Artist" 59 | msgstr "Artista" 60 | 61 | #: scanner.c:532 62 | msgid "Album" 63 | msgstr "Album" 64 | 65 | #: scanner.c:533 scanner.c:538 scanner.c:544 66 | msgid "Folders" 67 | msgstr "Cartelle" 68 | 69 | #: scanner.c:534 70 | msgid "Playlists" 71 | msgstr "Scalette" 72 | 73 | #: scanner.c:598 74 | msgid "Recently Added" 75 | msgstr "Aggiunto recentemente" 76 | 77 | #: scanner.c:536 78 | msgid "Video" 79 | msgstr "Video" 80 | 81 | #: scanner.c:537 82 | msgid "All Video" 83 | msgstr "Tutti i video" 84 | 85 | #: scanner.c:540 86 | msgid "Pictures" 87 | msgstr "Immagini" 88 | 89 | #: scanner.c:541 90 | msgid "All Pictures" 91 | msgstr "Tutte le immagini" 92 | 93 | #: scanner.c:542 94 | msgid "Date Taken" 95 | msgstr "Data dello scatto" 96 | 97 | #: scanner.c:543 98 | msgid "Camera" 99 | msgstr "Fotocamera" 100 | 101 | #: scanner.c:546 102 | msgid "Browse Folders" 103 | msgstr "Esplora cartelle" 104 | 105 | #: scanner.c:690 106 | #, c-format 107 | msgid "Scanning %s\n" 108 | msgstr "Scansione di %s\n" 109 | 110 | #: scanner.c:766 111 | #, c-format 112 | msgid "Scanning %s finished (%llu files)!\n" 113 | msgstr "Scansione di %s finita (%llu file)\n" 114 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/it.po: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Copyright (C) 2010 NETGEAR 3 | # This file is distributed under the same license as the MiniDLNA package. 4 | # Justin Maggard , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: minidlna 1.1.0\n" 9 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 10 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 11 | "PO-Revision-Date: 2010-11-01 10:04+0100\n" 12 | "Last-Translator: Andrea Musuruane \n" 13 | "Language-Team: Italian\n" 14 | "Language: it\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Poedit-Language: Italian\n" 19 | "X-Poedit-Country: ITALY\n" 20 | 21 | #: scanner.c:165 22 | msgid "Unknown Date" 23 | msgstr "Data sconosciuta" 24 | 25 | #: scanner.c:167 26 | msgid "Unknown Camera" 27 | msgstr "Fotocamera sconosciuta" 28 | 29 | #: scanner.c:277 30 | msgid "- All Albums -" 31 | msgstr "- Tutti gli album -" 32 | 33 | #: scanner.c:285 scanner.c:292 scanner.c:296 34 | msgid "Unknown Album" 35 | msgstr "Album sconosciuto" 36 | 37 | #: scanner.c:318 38 | msgid "- All Artists -" 39 | msgstr "- Tutti gli artisti -" 40 | 41 | #: scanner.c:326 scanner.c:332 scanner.c:336 42 | msgid "Unknown Artist" 43 | msgstr "Artista sconosciuto" 44 | 45 | #: scanner.c:528 46 | msgid "Music" 47 | msgstr "Musica" 48 | 49 | #: scanner.c:529 50 | msgid "All Music" 51 | msgstr "Tutta la musica" 52 | 53 | #: scanner.c:530 54 | msgid "Genre" 55 | msgstr "Genere" 56 | 57 | #: scanner.c:531 58 | msgid "Artist" 59 | msgstr "Artista" 60 | 61 | #: scanner.c:532 62 | msgid "Album" 63 | msgstr "Album" 64 | 65 | #: scanner.c:533 scanner.c:538 scanner.c:544 66 | msgid "Folders" 67 | msgstr "Cartelle" 68 | 69 | #: scanner.c:534 70 | msgid "Playlists" 71 | msgstr "Scalette" 72 | 73 | #: scanner.c:598 74 | msgid "Recently Added" 75 | msgstr "Aggiunto recentemente" 76 | 77 | #: scanner.c:536 78 | msgid "Video" 79 | msgstr "Video" 80 | 81 | #: scanner.c:537 82 | msgid "All Video" 83 | msgstr "Tutti i video" 84 | 85 | #: scanner.c:540 86 | msgid "Pictures" 87 | msgstr "Immagini" 88 | 89 | #: scanner.c:541 90 | msgid "All Pictures" 91 | msgstr "Tutte le immagini" 92 | 93 | #: scanner.c:542 94 | msgid "Date Taken" 95 | msgstr "Data dello scatto" 96 | 97 | #: scanner.c:543 98 | msgid "Camera" 99 | msgstr "Fotocamera" 100 | 101 | #: scanner.c:546 102 | msgid "Browse Folders" 103 | msgstr "Esplora cartelle" 104 | 105 | #: scanner.c:690 106 | #, c-format 107 | msgid "Scanning %s\n" 108 | msgstr "Scansione di %s\n" 109 | 110 | #: scanner.c:766 111 | #, c-format 112 | msgid "Scanning %s finished (%llu files)!\n" 113 | msgstr "Scansione di %s finita (%llu file)\n" 114 | -------------------------------------------------------------------------------- /src/minidlna-git/tagutils/tagutils-mp3.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-mp3.h 3 | // DESCRIPTION : MP3 metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved. 6 | //========================================================================= 7 | 8 | /* 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | 24 | struct mp3_frameinfo { 25 | int layer; // 1,2,3 26 | int bitrate; // unit=kbps 27 | int samplerate; // samp/sec 28 | int stereo; // flag 29 | 30 | int frame_length; // bytes 31 | int crc_protected; // flag 32 | int samples_per_frame; // calculated 33 | int padding; // flag 34 | int xing_offset; // for xing hdr 35 | int number_of_frames; 36 | 37 | int frame_offset; 38 | 39 | short mpeg_version; 40 | short id3_version; 41 | 42 | int is_valid; 43 | }; 44 | 45 | static int _get_mp3tags(char *file, struct song_metadata *psong); 46 | static int _get_mp3fileinfo(char *file, struct song_metadata *psong); 47 | static int _decode_mp3_frame(unsigned char *frame, struct mp3_frameinfo *pfi); 48 | 49 | // bitrate_tbl[layer_index][bitrate_index] 50 | static int bitrate_tbl[5][16] = { 51 | { 0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 0 }, /* MPEG1, L1 */ 52 | { 0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 0 }, /* MPEG1, L2 */ 53 | { 0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 0 }, /* MPEG1, L3 */ 54 | { 0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256, 0 }, /* MPEG2/2.5, L1 */ 55 | { 0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 0 } /* MPEG2/2.5, L2/L3 */ 56 | }; 57 | 58 | // sample_rate[sample_index][samplerate_index] 59 | static int sample_rate_tbl[3][4] = { 60 | { 44100, 48000, 32000, 0 }, /* MPEG 1 */ 61 | { 22050, 24000, 16000, 0 }, /* MPEG 2 */ 62 | { 11025, 12000, 8000, 0 } /* MPEG 2.5 */ 63 | }; 64 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/tagutils/tagutils-mp3.h: -------------------------------------------------------------------------------- 1 | //========================================================================= 2 | // FILENAME : tagutils-mp3.h 3 | // DESCRIPTION : MP3 metadata reader 4 | //========================================================================= 5 | // Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved. 6 | //========================================================================= 7 | 8 | /* 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | 24 | struct mp3_frameinfo { 25 | int layer; // 1,2,3 26 | int bitrate; // unit=kbps 27 | int samplerate; // samp/sec 28 | int stereo; // flag 29 | 30 | int frame_length; // bytes 31 | int crc_protected; // flag 32 | int samples_per_frame; // calculated 33 | int padding; // flag 34 | int xing_offset; // for xing hdr 35 | int number_of_frames; 36 | 37 | int frame_offset; 38 | 39 | short mpeg_version; 40 | short id3_version; 41 | 42 | int is_valid; 43 | }; 44 | 45 | static int _get_mp3tags(char *file, struct song_metadata *psong); 46 | static int _get_mp3fileinfo(char *file, struct song_metadata *psong); 47 | static int _decode_mp3_frame(unsigned char *frame, struct mp3_frameinfo *pfi); 48 | 49 | // bitrate_tbl[layer_index][bitrate_index] 50 | static int bitrate_tbl[5][16] = { 51 | { 0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 0 }, /* MPEG1, L1 */ 52 | { 0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 0 }, /* MPEG1, L2 */ 53 | { 0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 0 }, /* MPEG1, L3 */ 54 | { 0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256, 0 }, /* MPEG2/2.5, L1 */ 55 | { 0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 0 } /* MPEG2/2.5, L2/L3 */ 56 | }; 57 | 58 | // sample_rate[sample_index][samplerate_index] 59 | static int sample_rate_tbl[3][4] = { 60 | { 44100, 48000, 32000, 0 }, /* MPEG 1 */ 61 | { 22050, 24000, 16000, 0 }, /* MPEG 2 */ 62 | { 11025, 12000, 8000, 0 } /* MPEG 2.5 */ 63 | }; 64 | -------------------------------------------------------------------------------- /src/minidlna-git/upnpreplyparse.h: -------------------------------------------------------------------------------- 1 | /* MiniUPnP project 2 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 3 | * 4 | * Copyright (c) 2006, Thomas Bernard 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions are met: 9 | * * Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * * Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * * The name of the author may not be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | #ifndef __UPNPREPLYPARSE_H__ 30 | #define __UPNPREPLYPARSE_H__ 31 | 32 | #include 33 | #include 34 | 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | struct NameValue { 40 | LIST_ENTRY(NameValue) entries; 41 | char name[64]; 42 | char value[]; 43 | }; 44 | 45 | struct NameValueParserData { 46 | LIST_HEAD(listhead, NameValue) head; 47 | char curelt[64]; 48 | }; 49 | 50 | #define XML_STORE_EMPTY_FL 0x01 51 | 52 | /* ParseNameValue() */ 53 | void 54 | ParseNameValue(const char * buffer, int bufsize, 55 | struct NameValueParserData * data, uint32_t flags); 56 | 57 | /* ClearNameValueList() */ 58 | void 59 | ClearNameValueList(struct NameValueParserData * pdata); 60 | 61 | /* GetValueFromNameValueList() */ 62 | char * 63 | GetValueFromNameValueList(struct NameValueParserData * pdata, 64 | const char * Name); 65 | 66 | /* GetValueFromNameValueListIgnoreNS() */ 67 | char * 68 | GetValueFromNameValueListIgnoreNS(struct NameValueParserData * pdata, 69 | const char * Name); 70 | 71 | /* DisplayNameValueList() */ 72 | #ifdef DEBUG 73 | void 74 | DisplayNameValueList(char * buffer, int bufsize); 75 | #endif 76 | 77 | #ifdef __cplusplus 78 | } 79 | #endif 80 | 81 | #endif 82 | 83 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/upnpreplyparse.h: -------------------------------------------------------------------------------- 1 | /* MiniUPnP project 2 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 3 | * 4 | * Copyright (c) 2006, Thomas Bernard 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions are met: 9 | * * Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * * Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * * The name of the author may not be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | #ifndef __UPNPREPLYPARSE_H__ 30 | #define __UPNPREPLYPARSE_H__ 31 | 32 | #include 33 | #include 34 | 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | struct NameValue { 40 | LIST_ENTRY(NameValue) entries; 41 | char name[64]; 42 | char value[]; 43 | }; 44 | 45 | struct NameValueParserData { 46 | LIST_HEAD(listhead, NameValue) head; 47 | char curelt[64]; 48 | }; 49 | 50 | #define XML_STORE_EMPTY_FL 0x01 51 | 52 | /* ParseNameValue() */ 53 | void 54 | ParseNameValue(const char * buffer, int bufsize, 55 | struct NameValueParserData * data, uint32_t flags); 56 | 57 | /* ClearNameValueList() */ 58 | void 59 | ClearNameValueList(struct NameValueParserData * pdata); 60 | 61 | /* GetValueFromNameValueList() */ 62 | char * 63 | GetValueFromNameValueList(struct NameValueParserData * pdata, 64 | const char * Name); 65 | 66 | /* GetValueFromNameValueListIgnoreNS() */ 67 | char * 68 | GetValueFromNameValueListIgnoreNS(struct NameValueParserData * pdata, 69 | const char * Name); 70 | 71 | /* DisplayNameValueList() */ 72 | #ifdef DEBUG 73 | void 74 | DisplayNameValueList(char * buffer, int bufsize); 75 | #endif 76 | 77 | #ifdef __cplusplus 78 | } 79 | #endif 80 | 81 | #endif 82 | 83 | -------------------------------------------------------------------------------- /src/minidlna-git/po/minidlna.pot: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Justin Maggard , 2010. 3 | # 4 | # MiniDLNA media server 5 | # Copyright (C) 2010 NETGEAR 6 | # 7 | # This file is part of MiniDLNA. 8 | # 9 | # MiniDLNA is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License version 2 as 11 | # published by the Free Software Foundation. 12 | # 13 | # MiniDLNA is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with MiniDLNA. If not, see . 20 | # 21 | #, fuzzy 22 | msgid "" 23 | msgstr "" 24 | "Project-Id-Version: minidlna 1.1.0\n" 25 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 26 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 27 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 28 | "Last-Translator: FULL NAME \n" 29 | "Language-Team: LANGUAGE \n" 30 | "Language: \n" 31 | "MIME-Version: 1.0\n" 32 | "Content-Type: text/plain; charset=CHARSET\n" 33 | "Content-Transfer-Encoding: 8bit\n" 34 | 35 | #: scanner.c:165 36 | msgid "Unknown Date" 37 | msgstr "" 38 | 39 | #: scanner.c:167 40 | msgid "Unknown Camera" 41 | msgstr "" 42 | 43 | #: scanner.c:277 44 | msgid "- All Albums -" 45 | msgstr "" 46 | 47 | #: scanner.c:285 scanner.c:292 scanner.c:296 48 | msgid "Unknown Album" 49 | msgstr "" 50 | 51 | #: scanner.c:318 52 | msgid "- All Artists -" 53 | msgstr "" 54 | 55 | #: scanner.c:326 scanner.c:332 scanner.c:336 56 | msgid "Unknown Artist" 57 | msgstr "" 58 | 59 | #: scanner.c:528 60 | msgid "Music" 61 | msgstr "" 62 | 63 | #: scanner.c:529 64 | msgid "All Music" 65 | msgstr "" 66 | 67 | #: scanner.c:530 68 | msgid "Genre" 69 | msgstr "" 70 | 71 | #: scanner.c:531 72 | msgid "Artist" 73 | msgstr "" 74 | 75 | #: scanner.c:532 76 | msgid "Album" 77 | msgstr "" 78 | 79 | #: scanner.c:533 scanner.c:538 scanner.c:544 80 | msgid "Folders" 81 | msgstr "" 82 | 83 | #: scanner.c:534 84 | msgid "Playlists" 85 | msgstr "" 86 | 87 | #: scanner.c:598 88 | msgid "Recently Added" 89 | msgstr "" 90 | 91 | #: scanner.c:536 92 | msgid "Video" 93 | msgstr "" 94 | 95 | #: scanner.c:537 96 | msgid "All Video" 97 | msgstr "" 98 | 99 | #: scanner.c:540 100 | msgid "Pictures" 101 | msgstr "" 102 | 103 | #: scanner.c:541 104 | msgid "All Pictures" 105 | msgstr "" 106 | 107 | #: scanner.c:542 108 | msgid "Date Taken" 109 | msgstr "" 110 | 111 | #: scanner.c:543 112 | msgid "Camera" 113 | msgstr "" 114 | 115 | #: scanner.c:546 116 | msgid "Browse Folders" 117 | msgstr "" 118 | 119 | #: scanner.c:690 120 | #, c-format 121 | msgid "Scanning %s\n" 122 | msgstr "" 123 | 124 | #: scanner.c:766 125 | #, c-format 126 | msgid "Scanning %s finished (%llu files)!\n" 127 | msgstr "" 128 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/po/minidlna.pot: -------------------------------------------------------------------------------- 1 | # MiniDLNA translation template file 2 | # Justin Maggard , 2010. 3 | # 4 | # MiniDLNA media server 5 | # Copyright (C) 2010 NETGEAR 6 | # 7 | # This file is part of MiniDLNA. 8 | # 9 | # MiniDLNA is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License version 2 as 11 | # published by the Free Software Foundation. 12 | # 13 | # MiniDLNA is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with MiniDLNA. If not, see . 20 | # 21 | #, fuzzy 22 | msgid "" 23 | msgstr "" 24 | "Project-Id-Version: minidlna 1.1.0\n" 25 | "Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" 26 | "POT-Creation-Date: 2013-06-12 16:46+0200\n" 27 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 28 | "Last-Translator: FULL NAME \n" 29 | "Language-Team: LANGUAGE \n" 30 | "Language: \n" 31 | "MIME-Version: 1.0\n" 32 | "Content-Type: text/plain; charset=CHARSET\n" 33 | "Content-Transfer-Encoding: 8bit\n" 34 | 35 | #: scanner.c:165 36 | msgid "Unknown Date" 37 | msgstr "" 38 | 39 | #: scanner.c:167 40 | msgid "Unknown Camera" 41 | msgstr "" 42 | 43 | #: scanner.c:277 44 | msgid "- All Albums -" 45 | msgstr "" 46 | 47 | #: scanner.c:285 scanner.c:292 scanner.c:296 48 | msgid "Unknown Album" 49 | msgstr "" 50 | 51 | #: scanner.c:318 52 | msgid "- All Artists -" 53 | msgstr "" 54 | 55 | #: scanner.c:326 scanner.c:332 scanner.c:336 56 | msgid "Unknown Artist" 57 | msgstr "" 58 | 59 | #: scanner.c:528 60 | msgid "Music" 61 | msgstr "" 62 | 63 | #: scanner.c:529 64 | msgid "All Music" 65 | msgstr "" 66 | 67 | #: scanner.c:530 68 | msgid "Genre" 69 | msgstr "" 70 | 71 | #: scanner.c:531 72 | msgid "Artist" 73 | msgstr "" 74 | 75 | #: scanner.c:532 76 | msgid "Album" 77 | msgstr "" 78 | 79 | #: scanner.c:533 scanner.c:538 scanner.c:544 80 | msgid "Folders" 81 | msgstr "" 82 | 83 | #: scanner.c:534 84 | msgid "Playlists" 85 | msgstr "" 86 | 87 | #: scanner.c:598 88 | msgid "Recently Added" 89 | msgstr "" 90 | 91 | #: scanner.c:536 92 | msgid "Video" 93 | msgstr "" 94 | 95 | #: scanner.c:537 96 | msgid "All Video" 97 | msgstr "" 98 | 99 | #: scanner.c:540 100 | msgid "Pictures" 101 | msgstr "" 102 | 103 | #: scanner.c:541 104 | msgid "All Pictures" 105 | msgstr "" 106 | 107 | #: scanner.c:542 108 | msgid "Date Taken" 109 | msgstr "" 110 | 111 | #: scanner.c:543 112 | msgid "Camera" 113 | msgstr "" 114 | 115 | #: scanner.c:546 116 | msgid "Browse Folders" 117 | msgstr "" 118 | 119 | #: scanner.c:690 120 | #, c-format 121 | msgid "Scanning %s\n" 122 | msgstr "" 123 | 124 | #: scanner.c:766 125 | #, c-format 126 | msgid "Scanning %s finished (%llu files)!\n" 127 | msgstr "" 128 | -------------------------------------------------------------------------------- /src/minidlna-git/scanner_sqlite.h: -------------------------------------------------------------------------------- 1 | /* Media table definitions for SQLite database 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Douglas Carmichael 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2008-2017 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | 25 | char create_objectTable_sqlite[] = "CREATE TABLE OBJECTS (" 26 | "ID INTEGER PRIMARY KEY AUTOINCREMENT, " 27 | "OBJECT_ID TEXT UNIQUE NOT NULL, " 28 | "PARENT_ID TEXT NOT NULL, " 29 | "REF_ID TEXT DEFAULT NULL, " 30 | "CLASS TEXT NOT NULL, " 31 | "DETAIL_ID INTEGER DEFAULT NULL, " 32 | "NAME TEXT DEFAULT NULL" 33 | ");"; 34 | 35 | char create_detailTable_sqlite[] = "CREATE TABLE DETAILS (" 36 | "ID INTEGER PRIMARY KEY AUTOINCREMENT, " 37 | "PATH TEXT DEFAULT NULL, " 38 | "SIZE INTEGER, " 39 | "TIMESTAMP INTEGER, " 40 | "TITLE TEXT COLLATE NOCASE, " 41 | "DURATION TEXT, " 42 | "BITRATE INTEGER, " 43 | "SAMPLERATE INTEGER, " 44 | "CREATOR TEXT COLLATE NOCASE, " 45 | "ARTIST TEXT COLLATE NOCASE, " 46 | "ALBUM TEXT COLLATE NOCASE, " 47 | "GENRE TEXT COLLATE NOCASE, " 48 | "COMMENT TEXT, " 49 | "CHANNELS INTEGER, " 50 | "DISC INTEGER, " 51 | "TRACK INTEGER, " 52 | "DATE DATE, " 53 | "RESOLUTION TEXT, " 54 | "THUMBNAIL BOOL DEFAULT 0, " 55 | "ALBUM_ART INTEGER DEFAULT 0, " 56 | "ROTATION INTEGER, " 57 | "DLNA_PN TEXT, " 58 | "MIME TEXT" 59 | ");"; 60 | 61 | char create_albumArtTable_sqlite[] = "CREATE TABLE ALBUM_ART (" 62 | "ID INTEGER PRIMARY KEY AUTOINCREMENT, " 63 | "PATH TEXT NOT NULL" 64 | ");"; 65 | 66 | char create_captionTable_sqlite[] = "CREATE TABLE CAPTIONS (" 67 | "ID INTEGER PRIMARY KEY, " 68 | "PATH TEXT NOT NULL" 69 | ");"; 70 | 71 | char create_bookmarkTable_sqlite[] = "CREATE TABLE BOOKMARKS (" 72 | "ID INTEGER PRIMARY KEY, " 73 | "SEC INTEGER, " 74 | "WATCH_COUNT INTEGER" 75 | ");"; 76 | 77 | char create_playlistTable_sqlite[] = "CREATE TABLE PLAYLISTS (" 78 | "ID INTEGER PRIMARY KEY AUTOINCREMENT, " 79 | "NAME TEXT NOT NULL, " 80 | "PATH TEXT NOT NULL, " 81 | "ITEMS INTEGER DEFAULT 0, " 82 | "FOUND INTEGER DEFAULT 0, " 83 | "TIMESTAMP INTEGER DEFAULT 0" 84 | ");"; 85 | 86 | char create_settingsTable_sqlite[] = "CREATE TABLE SETTINGS (" 87 | "KEY TEXT NOT NULL, " 88 | "VALUE TEXT" 89 | ");"; 90 | -------------------------------------------------------------------------------- /fuzzing/minidlna-1.3.0/minidlna-1.3.0/scanner_sqlite.h: -------------------------------------------------------------------------------- 1 | /* Media table definitions for SQLite database 2 | * 3 | * Project : minidlna 4 | * Website : http://sourceforge.net/projects/minidlna/ 5 | * Author : Douglas Carmichael 6 | * 7 | * MiniDLNA media server 8 | * Copyright (C) 2008-2017 Justin Maggard 9 | * 10 | * This file is part of MiniDLNA. 11 | * 12 | * MiniDLNA is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License version 2 as 14 | * published by the Free Software Foundation. 15 | * 16 | * MiniDLNA is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with MiniDLNA. If not, see . 23 | */ 24 | 25 | char create_objectTable_sqlite[] = "CREATE TABLE OBJECTS (" 26 | "ID INTEGER PRIMARY KEY AUTOINCREMENT, " 27 | "OBJECT_ID TEXT UNIQUE NOT NULL, " 28 | "PARENT_ID TEXT NOT NULL, " 29 | "REF_ID TEXT DEFAULT NULL, " 30 | "CLASS TEXT NOT NULL, " 31 | "DETAIL_ID INTEGER DEFAULT NULL, " 32 | "NAME TEXT DEFAULT NULL" 33 | ");"; 34 | 35 | char create_detailTable_sqlite[] = "CREATE TABLE DETAILS (" 36 | "ID INTEGER PRIMARY KEY AUTOINCREMENT, " 37 | "PATH TEXT DEFAULT NULL, " 38 | "SIZE INTEGER, " 39 | "TIMESTAMP INTEGER, " 40 | "TITLE TEXT COLLATE NOCASE, " 41 | "DURATION TEXT, " 42 | "BITRATE INTEGER, " 43 | "SAMPLERATE INTEGER, " 44 | "CREATOR TEXT COLLATE NOCASE, " 45 | "ARTIST TEXT COLLATE NOCASE, " 46 | "ALBUM TEXT COLLATE NOCASE, " 47 | "GENRE TEXT COLLATE NOCASE, " 48 | "COMMENT TEXT, " 49 | "CHANNELS INTEGER, " 50 | "DISC INTEGER, " 51 | "TRACK INTEGER, " 52 | "DATE DATE, " 53 | "RESOLUTION TEXT, " 54 | "THUMBNAIL BOOL DEFAULT 0, " 55 | "ALBUM_ART INTEGER DEFAULT 0, " 56 | "ROTATION INTEGER, " 57 | "DLNA_PN TEXT, " 58 | "MIME TEXT" 59 | ");"; 60 | 61 | char create_albumArtTable_sqlite[] = "CREATE TABLE ALBUM_ART (" 62 | "ID INTEGER PRIMARY KEY AUTOINCREMENT, " 63 | "PATH TEXT NOT NULL" 64 | ");"; 65 | 66 | char create_captionTable_sqlite[] = "CREATE TABLE CAPTIONS (" 67 | "ID INTEGER PRIMARY KEY, " 68 | "PATH TEXT NOT NULL" 69 | ");"; 70 | 71 | char create_bookmarkTable_sqlite[] = "CREATE TABLE BOOKMARKS (" 72 | "ID INTEGER PRIMARY KEY, " 73 | "SEC INTEGER, " 74 | "WATCH_COUNT INTEGER" 75 | ");"; 76 | 77 | char create_playlistTable_sqlite[] = "CREATE TABLE PLAYLISTS (" 78 | "ID INTEGER PRIMARY KEY AUTOINCREMENT, " 79 | "NAME TEXT NOT NULL, " 80 | "PATH TEXT NOT NULL, " 81 | "ITEMS INTEGER DEFAULT 0, " 82 | "FOUND INTEGER DEFAULT 0, " 83 | "TIMESTAMP INTEGER DEFAULT 0" 84 | ");"; 85 | 86 | char create_settingsTable_sqlite[] = "CREATE TABLE SETTINGS (" 87 | "KEY TEXT NOT NULL, " 88 | "VALUE TEXT" 89 | ");"; 90 | -------------------------------------------------------------------------------- /src/minidlna-git/upnpevents.h: -------------------------------------------------------------------------------- 1 | /* MiniDLNA project 2 | * http://minidlna.sourceforge.net/ 3 | * 4 | * MiniDLNA media server 5 | * Copyright (C) 2008-2009 Justin Maggard 6 | * 7 | * This file is part of MiniDLNA. 8 | * 9 | * MiniDLNA is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License version 2 as 11 | * published by the Free Software Foundation. 12 | * 13 | * MiniDLNA is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with MiniDLNA. If not, see . 20 | * 21 | * Portions of the code from the MiniUPnP project: 22 | * 23 | * Copyright (c) 2006-2007, Thomas Bernard 24 | * All rights reserved. 25 | * 26 | * Redistribution and use in source and binary forms, with or without 27 | * modification, are permitted provided that the following conditions are met: 28 | * * Redistributions of source code must retain the above copyright 29 | * notice, this list of conditions and the following disclaimer. 30 | * * Redistributions in binary form must reproduce the above copyright 31 | * notice, this list of conditions and the following disclaimer in the 32 | * documentation and/or other materials provided with the distribution. 33 | * * The name of the author may not be used to endorse or promote products 34 | * derived from this software without specific prior written permission. 35 | * 36 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 37 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 39 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 40 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 41 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 42 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 43 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 44 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 45 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 46 | * POSSIBILITY OF SUCH DAMAGE. 47 | */ 48 | #ifndef __UPNPEVENTS_H__ 49 | #define __UPNPEVENTS_H__ 50 | enum subscriber_service_enum { 51 | EContentDirectory = 1, 52 | EConnectionManager, 53 | EMSMediaReceiverRegistrar 54 | }; 55 | 56 | void 57 | upnp_event_var_change_notify(enum subscriber_service_enum service); 58 | 59 | const char * 60 | upnpevents_addSubscriber(const char * eventurl, 61 | const char * callback, int callbacklen, 62 | int timeout); 63 | 64 | int upnpevents_removeSubscriber(const char * sid, int sidlen); 65 | void upnpevents_removeSubscribers(void); 66 | void upnpevents_gc(void); 67 | 68 | int renewSubscription(const char * sid, int sidlen, int timeout); 69 | 70 | #ifdef USE_MINIUPNPDCTL 71 | void write_events_details(int s); 72 | #endif 73 | 74 | #endif 75 | --------------------------------------------------------------------------------