==> Building on s ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ PKGBUILD 1,905 100% 0.00kB/s 0:00:00 1,905 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=4/6) gnutls-3.7.8-1.log 246 100% 240.23kB/s 0:00:00 246 100% 240.23kB/s 0:00:00 (xfr#2, to-chk=3/6) keys/ keys/pgp/ keys/pgp/5D46CB0F763405A7053556F47A75A648B3F9220C.asc 669 100% 108.89kB/s 0:00:00 669 100% 108.89kB/s 0:00:00 (xfr#3, to-chk=0/6) sent 2,111 bytes received 110 bytes 888.40 bytes/sec total size is 2,762 speedup is 1.24 ==> Ensuring required PGP keys are present... ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix22 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix22]...done ==> Making package: gnutls 3.7.8-1 (Fri Sep 30 06:10:55 2022) ==> Retrieving sources...  -> Downloading gnutls-3.7.8.tar.xz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 3 5887k 3 208k 0 0 119k 0 0:00:49 0:00:01 0:00:48 119k 66 5887k 66 3928k 0 0 1472k 0 0:00:03 0:00:02 0:00:01 1472k 100 5887k 100 5887k 0 0 1965k 0 0:00:02 0:00:02 --:--:-- 1964k  -> Downloading gnutls-3.7.8.tar.xz.sig... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1250 100 1250 0 0 1607 0 --:--:-- --:--:-- --:--:-- 1606 ==> Validating source files with sha256sums... gnutls-3.7.8.tar.xz ... Passed gnutls-3.7.8.tar.xz.sig ... Skipped ==> Verifying source file signatures with gpg... gnutls-3.7.8.tar.xz ... Passed ==> Making package: gnutls 3.7.8-1 (Fri Sep 30 06:11:13 2022) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (4) New Version Net Change core/json-c 0.16-1 0.16 MiB core/net-tools 2.10-1 0.45 MiB community/tpm2-tools 5.2-1 1.30 MiB core/tpm2-tss 3.2.0-1 2.40 MiB Total Installed Size: 4.30 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing json-c... installing tpm2-tss... installing net-tools... installing tpm2-tools... Optional dependencies for tpm2-tools tpm2-abrmd: user space resource manager [?25h==> Retrieving sources...  -> Found gnutls-3.7.8.tar.xz  -> Found gnutls-3.7.8.tar.xz.sig ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting gnutls-3.7.8.tar.xz with bsdtar ==> Starting build()... checking build system type... riscv64-unknown-linux-gnu checking host system type... riscv64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes *** *** Checking for compilation programs... checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether the compiler is clang... no checking for compiler option needed when checking for declarations... none checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking for sys/socket.h... yes checking for arpa/inet.h... yes checking for features.h... yes checking for unistd.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/time.h... yes checking for netdb.h... yes checking for netinet/in.h... yes checking for limits.h... yes checking for inttypes.h... (cached) yes checking for sys/types.h... (cached) yes checking for stdint.h... (cached) yes checking for threads.h... yes checking for sys/mman.h... yes checking for sys/param.h... yes checking for strings.h... (cached) yes checking for sys/uio.h... yes checking for crtdefs.h... no checking for stdio_ext.h... yes checking for termios.h... yes checking for sys/select.h... yes checking for langinfo.h... yes checking for xlocale.h... no checking for semaphore.h... yes checking for pthread.h... yes checking for sys/cdefs.h... yes checking for sys/wait.h... yes checking for sys/ioctl.h... yes checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking for Minix Amsterdam compiler... no checking for ar... ar checking the archiver (ar) interface... ar checking for ar... (cached) ar checking for ranlib... ranlib checking for _LARGEFILE_SOURCE value needed for large files... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking dependency style of gcc... gcc3 checking the archiver (ar) interface... (cached) ar checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... gcc3 checking for bison... bison -y checking for a sed that does not truncate output... /usr/bin/sed checking whether to build with code coverage support... no checking whether to enable maintainer-specific portions of Makefiles... yes checking for inline... inline checking for ANSI C header files... (cached) yes checking for __get_cpuid_count... no checking for struct iovec.iov_base... yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking stdatomic.h usability... yes checking stdatomic.h presence... yes checking for stdatomic.h... yes checking for library containing __atomic_load_4... none required checking for threads.h... (cached) yes checking sanitizer/asan_interface.h usability... yes checking sanitizer/asan_interface.h presence... yes checking for sanitizer/asan_interface.h... yes checking valgrind/memcheck.h usability... no checking valgrind/memcheck.h presence... no checking for valgrind/memcheck.h... no checking for getrandom... yes checking for KERN_ARND... no checking for getentropy... no checking for NETTLE... yes checking for HOGWEED... yes checking for __gmpz_cmp in -lgmp... yes checking for LIBTASN1... yes checking whether to use the included minitasn1... no checking whether C99 macros are supported... yes checking whether to disable strict DER time encodings for backwards compatibility... no checking whether to allow SHA1 as an acceptable hash for cert digital signatures... yes checking whether to disable the SSL 3.0 protocol... yes checking whether to disable the SSL 2.0 client hello... no checking whether to disable DTLS-SRTP extension... no checking whether to disable ALPN extension... no checking whether to enable TLS heartbeat support... yes checking whether to disable SRP authentication support... no checking whether to disable PSK authentication support... no checking whether to disable anonymous authentication support... no checking whether to disable DHE support... no checking whether to disable ECDHE support... no checking whether to disable GOST support... no checking whether to add cryptodev support... no checking whether to add AF_ALG support... no checking whether to add KTLS support... no checking whether to disable OCSP support... no checking size of void *... 8 checking size of long long... 8 checking size of long... 8 checking size of int... 4 checking for library containing setsockopt... none needed checking whether to build OpenSSL compatibility layer... yes checking for gtk-doc... no configure: WARNING: You will not be able to create source packages with 'make dist' because gtk-doc >= 1.14 is not found. checking for gtkdoc-check... no checking for gtkdoc-check... no checking for gtkdoc-rebase... no checking for gtkdoc-mkpdf... no checking whether to build gtk-doc documentation... no checking for GTKDOC_DEPS... yes checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking 32-bit host C ABI... no checking for ELF binary format... yes checking for the common suffixes of directories in the library search path... lib,lib,lib checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyPreferredLanguages... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking whether byte ordering is bigendian... no checking for fork... yes checking for setitimer... yes checking for getrusage... yes checking for getpwuid_r... yes checking for nanosleep... yes checking for daemon... yes checking for getpid... yes checking for localtime... yes checking for mmap... yes checking for clock_gettime... yes checking for fmemopen... yes checking for __register_atfork... yes checking for secure_getenv... yes checking for getauxval... yes checking for libseccomp... yes checking how to link with libseccomp... /usr/lib/libseccomp.so checking for libcrypto... yes checking how to link with libcrypto... /usr/lib/libcrypto.so od: cannot skip past end of combined input checking for librt... yes checking how to link with librt... -lrt checking for pthread_mutex_lock... yes checking for library containing u8_normalize... -lunistring checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking whether the preprocessor supports include_next... yes checking whether source code line length is unlimited... yes checking for _set_invalid_parameter_handler... no checking for explicit_bzero... yes checking for memset_s... no checking for fcntl... yes checking for symlink... yes checking for getdelim... yes checking for getdtablesize... yes checking for gettimeofday... yes checking for mprotect... yes checking for lstat... yes checking for secure_getenv... (cached) yes checking for getuid... yes checking for geteuid... yes checking for getgid... yes checking for getegid... yes checking for snprintf... yes checking for strndup... yes checking for localtime_r... yes checking for vasnprintf... no checking for getpass... yes checking for __fsetlocking... yes checking for getprogname... no checking for getexecname... no checking for setenv... yes checking for strerror_r... yes checking for __xpg_strerror_r... yes checking for timegm... yes checking for ftruncate... yes checking for isblank... yes checking for newlocale... yes checking for uselocale... yes checking for duplocale... yes checking for freelocale... yes checking for pipe... yes checking for pthread_sigmask... yes checking for sigaction... yes checking for sigaltstack... yes checking for siginterrupt... yes checking for sleep... yes checking for catgets... yes checking for shutdown... yes checking for usleep... yes checking for mquery... no checking for pstat_getprocvm... no checking for complete errno.h... yes checking for working fcntl.h... yes checking for pid_t... yes checking for mode_t... yes checking whether stat file-mode macros are broken... no checking for C/C++ restrict keyword... __restrict__ checking for nlink_t... yes checking whether stdin defaults to large file offsets... yes checking whether ftello is declared... yes checking whether ungetc works on arbitrary bytes... yes checking for ftello... yes checking whether ftello works... yes checking whether getdelim is declared... yes checking whether getdtablesize is declared... yes checking whether getline is declared... yes checking for struct timeval... yes checking for wide-enough struct timeval.tv_sec member... yes checking whether is self-contained... yes checking for shutdown... (cached) yes checking whether defines the SHUT_* macros... yes checking for struct sockaddr_storage... yes checking for sa_family_t... yes checking for struct sockaddr_storage.ss_family... yes checking for IPv4 sockets... yes checking for IPv6 sockets... yes checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... yes checking for wint_t... yes checking whether wint_t is large enough... yes checking whether the compiler produces multi-arch binaries... no checking whether stdint.h conforms to C99... yes checking whether stdint.h works without ISO C predefines... yes checking whether stdint.h has UINTMAX_WIDTH etc.... yes checking whether imported symbols can be declared weak... yes checking for pthread.h... (cached) yes checking for pthread_kill in -lpthread... yes checking whether POSIX threads API is available... yes checking for multithread API to use... posix checking whether malloc is ptrdiff_t safe... yes checking whether malloc, realloc, calloc set errno on failure... yes checking whether malloc (0) returns nonnull... yes checking for mmap... (cached) yes checking for MAP_ANONYMOUS... yes checking whether memchr works... yes checking whether memmem is declared... yes checking whether defines MIN and MAX... no checking whether defines MIN and MAX... yes checking for O_CLOEXEC... yes checking for promoted mode_t type... mode_t checking whether snprintf returns a byte count as in C99... yes checking whether snprintf is declared... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for wchar_t... yes checking for good max_align_t... yes checking whether NULL can be used in arbitrary expressions... yes checking whether fcloseall is declared... yes checking which flavor of printf attribute matches inttypes macros... system checking whether ecvt is declared... yes checking whether fcvt is declared... yes checking whether gcvt is declared... yes checking whether strdup is declared... yes checking whether strndup is declared... yes checking whether strnlen is declared... yes checking whether strtok_r is declared... yes checking for struct timespec in ... yes checking for TIME_UTC in ... yes checking whether execvpe is declared... yes checking for inttypes.h... yes checking for stdint.h... yes checking for intmax_t... yes checking where to find the exponent in a 'double'... word 1 bit 20 checking whether snprintf truncates the result as in C99... yes checking for snprintf... (cached) yes checking for strnlen... yes checking for wcslen... yes checking for wcsnlen... yes checking for mbrtowc... yes checking for wcrtomb... yes checking whether _snprintf is declared... no checking whether vsnprintf is declared... yes checking whether uses 'inline' correctly... yes checking whether wcsdup is declared... yes checking for alloca as a compiler built-in... yes checking for __builtin_expect... yes checking byteswap.h usability... yes checking byteswap.h presence... yes checking for byteswap.h... yes checking whether // is distinct from /... no checking whether dup2 works... yes checking whether fcntl handles F_DUPFD correctly... yes checking whether fcntl understands F_DUPFD_CLOEXEC... needs runtime check checking whether conversion from 'int' to 'long double' works... yes checking whether fopen recognizes a trailing slash... yes checking whether fopen supports the mode character 'x'... yes checking whether fopen supports the mode character 'e'... yes checking whether free is known to preserve errno... yes checking for ftello... (cached) yes checking whether ftello works... (cached) yes checking whether __func__ is available... yes checking for working getdelim function... yes checking whether getdtablesize works... yes checking for getline... yes checking for working getline function... yes checking for gettimeofday with POSIX signature... yes checking for library containing inet_ntop... none required checking whether inet_ntop is declared... yes checking for library containing inet_pton... none required checking whether inet_pton is declared... yes checking for objdump... objdump checking if gcc/ld supports -Wl,--output-def... no checking if LD -Wl,--version-script works... yes checking whether the compiler supports the __inline keyword... yes checking for pthread_rwlock_t... yes checking whether pthread_rwlock_rdlock prefers a writer to a reader... no checking whether lseek detects pipes... yes checking for memmem... yes checking whether memmem works... yes checking whether is self-contained... yes checking whether open recognizes a trailing slash... yes checking for pmccabe... false checking for stdint.h... (cached) yes checking for SIZE_MAX... yes checking for snprintf... (cached) yes checking whether snprintf respects a size of 1... yes checking whether printf supports POSIX/XSI format strings with positions... yes checking for socklen_t... yes checking for ssize_t... yes checking whether stat handles trailing slashes on files... yes checking for struct stat.st_atim.tv_nsec... yes checking whether struct stat.st_atim is of type struct timespec... yes checking for struct stat.st_birthtimespec.tv_nsec... no checking for struct stat.st_birthtimensec... no checking for struct stat.st_birthtim.tv_nsec... no checking for working stdalign.h... yes checking for stpcpy... yes checking for strcasecmp... yes checking for strncasecmp... yes checking whether strncasecmp is declared... yes checking for working strndup... yes checking for working strnlen... yes checking for strtok_r... yes checking whether strtok_r works... yes checking for strverscmp... yes checking whether localtime_r is declared... yes checking whether localtime_r is compatible with its POSIX signature... yes checking for ptrdiff_t... yes checking for vasprintf... yes checking for vsnprintf... yes checking whether snprintf respects a size of 1... (cached) yes checking whether printf supports POSIX/XSI format strings with positions... (cached) yes checking for stdint.h... (cached) yes checking if environ is properly declared... yes checking whether strerror_r is declared... yes checking for strerror_r... (cached) yes checking whether strerror_r returns char *... yes checking whether fseeko is declared... yes checking for fseeko... yes checking for library containing gethostbyname... none required checking for gethostbyname... yes checking for library containing getservbyname... none required checking for getservbyname... yes checking whether fflush_unlocked is declared... yes checking whether flockfile is declared... yes checking whether fputs_unlocked is declared... yes checking whether funlockfile is declared... yes checking whether putc_unlocked is declared... yes checking whether INT32_MAX < INTMAX_MAX... yes checking whether INT64_MAX == LONG_MAX... yes checking whether UINT32_MAX < UINTMAX_MAX... yes checking whether UINT64_MAX == ULONG_MAX... yes checking whether time_t is signed... yes checking whether alarm is declared... yes checking for working mktime... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for struct tm.tm_gmtoff... yes checking for compound literals... yes checking whether is self-contained... yes checking whether setenv is declared... yes checking search.h usability... yes checking search.h presence... yes checking for search.h... yes checking for tsearch... yes checking for sigset_t... yes checking for uid_t in sys/types.h... yes checking for volatile sig_atomic_t... yes checking for sighandler_t... yes checking whether strerror(0) succeeds... yes checking for strerror_r with POSIX signature... no checking whether __xpg_strerror_r works... yes checking whether unsetenv is declared... yes checking for nl_langinfo and CODESET... yes checking whether getcwd (NULL, 0) allocates memory for result... yes checking for getcwd with POSIX signature... yes checking for off_t... yes checking whether langinfo.h defines CODESET... yes checking whether langinfo.h defines T_FMT_AMPM... yes checking whether langinfo.h defines ALTMON_1... yes checking whether langinfo.h defines ERA... yes checking whether langinfo.h defines YESEXPR... yes checking whether locale.h defines locale_t... yes checking whether locale.h conforms to POSIX:2001... yes checking whether struct lconv is properly defined... yes checking for LC_MESSAGES... yes checking whether uselocale works... yes checking for fake locale system (OpenBSD)... no checking for Solaris 11.4 locale system... no checking for getlocalename_l... no checking for library needed for semaphore functions... none checking whether lstat correctly handles trailing slash... yes checking whether strerror_r is declared... (cached) yes checking for pthread_t... yes checking for pthread_spinlock_t... yes checking for PTHREAD_CREATE_DETACHED... yes checking for PTHREAD_MUTEX_RECURSIVE... yes checking for PTHREAD_MUTEX_ROBUST... yes checking for PTHREAD_PROCESS_SHARED... yes checking for sched.h... yes checking for struct sched_param... yes checking whether setlocale (LC_ALL, NULL) is multithread-safe... yes checking whether setlocale (category, NULL) is multithread-safe... yes checking whether declares ioctl... yes checking for alloca as a compiler built-in... (cached) yes checking for __builtin_expect... (cached) yes checking for byteswap.h... (cached) yes checking whether calloc (0, n) and calloc (n, 0) return nonnull... yes checking for library containing clock_gettime... none required checking for clock_gettime... (cached) yes checking for clock_settime... yes checking whether // is distinct from /... (cached) no checking whether dup2 works... (cached) yes checking for error_at_line... yes checking whether fcntl handles F_DUPFD correctly... (cached) yes checking whether fcntl understands F_DUPFD_CLOEXEC... (cached) needs runtime check checking for flexible array member... yes checking whether conversion from 'int' to 'long double' works... (cached) yes checking whether fopen recognizes a trailing slash... (cached) yes checking whether fopen supports the mode character 'x'... (cached) yes checking whether fopen supports the mode character 'e'... (cached) yes checking for __fpending... yes checking whether __fpending is declared... yes checking whether free is known to preserve errno... (cached) yes checking for fseeko... (cached) yes checking for ftello... (cached) yes checking whether ftello works... (cached) yes checking whether __func__ is available... (cached) yes checking for library containing getaddrinfo... none required checking for getaddrinfo... yes checking whether gai_strerror is declared... yes checking whether gai_strerrorA is declared... no checking for gai_strerror with POSIX signature... yes checking for struct sockaddr.sa_len... no checking whether getaddrinfo is declared... yes checking whether freeaddrinfo is declared... yes checking whether getnameinfo is declared... yes checking for struct addrinfo... yes checking for working getdelim function... (cached) yes checking whether getdtablesize works... (cached) yes checking for getline... (cached) yes checking for working getline function... (cached) yes checking whether program_invocation_name is declared... yes checking whether program_invocation_short_name is declared... yes checking whether __argv is declared... no checking for gettimeofday with POSIX signature... (cached) yes checking for library containing gethostbyname... (cached) none required checking for gethostbyname... (cached) yes checking for library containing inet_ntop... (cached) none required checking whether inet_ntop is declared... (cached) yes checking for library containing inet_pton... (cached) none required checking whether inet_pton is declared... (cached) yes checking whether the compiler supports the __inline keyword... (cached) yes checking for pthread_rwlock_t... (cached) yes checking whether pthread_rwlock_rdlock prefers a writer to a reader... (cached) no checking whether lseek detects pipes... (cached) yes checking whether malloc (0) returns nonnull... (cached) yes checking for memmem... (cached) yes checking whether memmem works... (cached) yes checking for __mktime_internal... no checking whether is self-contained... (cached) yes checking whether open recognizes a trailing slash... (cached) yes checking for bison... bison checking for bison 2.4 or newer... 3.8.2, ok checking for struct tm.tm_zone... (cached) yes checking whether program_invocation_name is declared... (cached) yes checking whether program_invocation_short_name is declared... (cached) yes checking whether realloc (0, 0) returns nonnull... yes checking for reallocarray... yes checking whether select supports a 0 argument... yes checking whether select detects invalid fds... yes checking for library containing getservbyname... (cached) none required checking for getservbyname... (cached) yes checking whether setenv validates arguments... yes checking for stdint.h... (cached) yes checking for SIZE_MAX... (cached) yes checking for snprintf... (cached) yes checking whether snprintf respects a size of 1... (cached) yes checking whether printf supports POSIX/XSI format strings with positions... (cached) yes checking for socklen_t... (cached) yes checking for ssize_t... (cached) yes checking whether stat handles trailing slashes on files... (cached) yes checking for struct stat.st_atim.tv_nsec... (cached) yes checking whether struct stat.st_atim is of type struct timespec... (cached) yes checking for struct stat.st_birthtimespec.tv_nsec... (cached) no checking for struct stat.st_birthtimensec... (cached) no checking for struct stat.st_birthtim.tv_nsec... (cached) no checking for working stdalign.h... (cached) yes checking for stpcpy... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking whether strncasecmp is declared... (cached) yes checking for working strerror function... yes checking for working strndup... (cached) yes checking for working strnlen... (cached) yes checking for strtok_r... (cached) yes checking whether strtok_r works... (cached) yes checking for strverscmp... (cached) yes checking whether localtime_r is declared... (cached) yes checking whether localtime_r is compatible with its POSIX signature... (cached) yes checking whether localtime works even near extrema... yes checking for timezone_t... no checking for unsetenv... yes checking for unsetenv() return type... int checking whether unsetenv obeys POSIX... yes checking for ptrdiff_t... (cached) yes checking for vasprintf... (cached) yes checking for vsnprintf... (cached) yes checking whether snprintf respects a size of 1... (cached) yes checking whether printf supports POSIX/XSI format strings with positions... (cached) yes checking for stdint.h... (cached) yes checking for atoll... yes checking for a traditional french locale... none checking for a turkish Unicode locale... none checking whether fdopen sets errno... yes checking for getpagesize... yes checking whether getpagesize is declared... yes checking whether byte ordering is bigendian... (cached) no checking whether byte ordering is bigendian... (cached) no checking for ioctl... yes checking for ioctl with POSIX signature... no checking for library containing nanosleep... none required checking for working nanosleep... no (mishandles large arguments) checking whether perror matches strerror... yes checking whether pthread_create exists as a global function... yes checking whether pthread_sigmask is a macro... no checking whether pthread_sigmask works without -lpthread... yes checking whether pthread_sigmask returns error numbers... yes checking whether pthread_sigmask unblocks signals correctly... guessing yes checking for putenv compatible with GNU and SVID... yes checking for raise... yes checking for sigprocmask... yes checking whether sched_yield is declared... yes checking whether setlocale supports the C locale... yes checking whether setlocale (LC_ALL, NULL) is multithread-safe... (cached) yes checking whether setlocale (category, NULL) is multithread-safe... (cached) yes checking for a traditional french locale... (cached) none checking for a french Unicode locale... none checking for a traditional japanese locale... none checking for a transitional chinese locale... none checking for struct sigaction.sa_sigaction... yes checking for sigprocmask... (cached) yes checking whether sleep is declared... yes checking for working sleep... yes checking for strtoll... yes checking whether strtoll works... yes checking whether symlink handles trailing slash correctly... yes checking for pthread_atfork... yes checking sys/single_threaded.h usability... yes checking sys/single_threaded.h presence... yes checking for sys/single_threaded.h... yes checking for useconds_t... yes checking whether usleep allows large arguments... yes checking whether the compiler generally respects inline... yes checking for ssize_t... (cached) yes checking for a Python interpreter with version >= 3.6... none checking for libev... no checking whether C compiler handles -Werror -Wunknown-warning-option... no checking whether C compiler handles -Wtype-limits... yes checking whether -Wno-missing-field-initializers is supported... yes checking whether -Wno-missing-field-initializers is needed... no checking whether -Wuninitialized is supported... yes checking whether C compiler handles -fanalyzer... yes checking whether C compiler handles -fno-common... yes checking whether C compiler handles -Wall... yes checking whether C compiler handles -Wbad-function-cast... yes checking whether C compiler handles -Wcast-align=strict... yes checking whether C compiler handles -Wdate-time... yes checking whether C compiler handles -Wdisabled-optimization... yes checking whether C compiler handles -Wdouble-promotion... yes checking whether C compiler handles -Wduplicated-branches... yes checking whether C compiler handles -Wduplicated-cond... yes checking whether C compiler handles -Wextra... yes checking whether C compiler handles -Winit-self... yes checking whether C compiler handles -Winvalid-pch... yes checking whether C compiler handles -Wlogical-op... yes checking whether C compiler handles -Wmissing-declarations... yes checking whether C compiler handles -Wmissing-include-dirs... yes checking whether C compiler handles -Wmissing-prototypes... yes checking whether C compiler handles -Wnested-externs... yes checking whether C compiler handles -Wnull-dereference... yes checking whether C compiler handles -Wold-style-definition... yes checking whether C compiler handles -Wopenmp-simd... yes checking whether C compiler handles -Wpacked... yes checking whether C compiler handles -Wpointer-arith... yes checking whether C compiler handles -Wshadow... yes checking whether C compiler handles -Wstrict-prototypes... yes checking whether C compiler handles -Wsuggest-attribute=cold... yes checking whether C compiler handles -Wsuggest-attribute=format... yes checking whether C compiler handles -Wsuggest-attribute=malloc... yes checking whether C compiler handles -Wsuggest-final-methods... yes checking whether C compiler handles -Wsuggest-final-types... yes checking whether C compiler handles -Wsync-nand... yes checking whether C compiler handles -Wtrampolines... yes checking whether C compiler handles -Wuninitialized... yes checking whether C compiler handles -Wunknown-pragmas... yes checking whether C compiler handles -Wunused-macros... yes checking whether C compiler handles -Wvariadic-macros... yes checking whether C compiler handles -Wvector-operation-performance... yes checking whether C compiler handles -Wwrite-strings... yes checking whether C compiler handles -Warray-bounds=2... yes checking whether C compiler handles -Wattribute-alias=2... yes checking whether C compiler handles -Wformat-overflow=2... yes checking whether C compiler handles -Wformat=2... yes checking whether C compiler handles -Wformat-truncation=2... yes checking whether C compiler handles -Wimplicit-fallthrough=5... yes checking whether C compiler handles -Wshift-overflow=2... yes checking whether C compiler handles -Wunused-const-variable=2... yes checking whether C compiler handles -Wvla-larger-than=4031... yes checking whether C compiler handles -Wno-analyzer-double-free... yes checking whether C compiler handles -Wno-analyzer-malloc-leak... yes checking whether C compiler handles -Wno-analyzer-null-dereference... yes checking whether C compiler handles -Wno-analyzer-use-after-free... yes checking whether C compiler handles -Wno-missing-field-initializers... yes checking whether C compiler handles -Wno-unused-parameter... yes checking whether C compiler handles -Wno-format-truncation... yes checking whether C compiler handles -Wimplicit-fallthrough=2... yes checking whether C compiler handles -Wabi=11... yes checking whether C compiler handles -fdiagnostics-show-option... yes checking whether C compiler handles -fno-builtin-strcmp... yes checking whether ln -s works... yes checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-unknown-linux-gnu file names to riscv64-unknown-linux-gnu format... func_convert_file_noop checking how to convert riscv64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... (cached) objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... (cached) ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate od: cannot skip past end of combined input checking for libdl... yes checking how to link with libdl... -ldl checking for CMOCKA... no checking for LIBIDN2... yes checking for nettle_get_secp_192r1 in -lhogweed... yes checking for nettle_rsa_sec_decrypt... yes checking for nettle_gost28147_set_key... no checking for nettle_streebog512_update... yes checking for nettle_magma_set_key... no checking for nettle_kuznyechik_set_key... no checking for nettle_cmac_magma_update... no checking for nettle_cmac_kuznyechik_update... no checking gmp soname... libgmp.so.10 checking nettle soname... libnettle.so.8 checking hogweed soname... libhogweed.so.6 checking whether to build libdane... yes checking for unbound library... no configure: WARNING: *** *** libunbound was not found. Libdane will not be built. *** checking for P11_KIT... yes checking for TSS2... yes checking for tss library... no configure: WARNING: *** *** trousers was not found. TPM support will be disabled. *** checking size of unsigned long int... 8 checking size of unsigned int... 4 checking size of time_t... 8 checking whether to include zlib compression support... yes checking for libz... yes checking how to link with libz... /usr/lib/libz.so checking whether to include brotli compression support... yes checking for LIBBROTLIENC... yes checking for LIBBROTLIDEC... yes checking whether to include zstd compression support... yes checking for LIBZSTD... yes checking whether building Guile bindings... yes *** *** Detecting GNU Guile... checking for guile-snarf... /usr/bin/guile-snarf checking for guild... /usr/bin/guild configure: checking for guile 3.0 configure: checking for guile 2.2 configure: found guile 2.2 checking for guile-2.2... no checking for guile2.2... no checking for guile-2... no checking for guile2... no checking for guile... /usr/bin/guile checking for Guile version >= 2.2... 2.2.7 checking for guild... (cached) /usr/bin/guild checking for guile-config... /usr/bin/guile-config checking for Guile site directory... /usr/share/guile/site/2.2 checking for Guile site-ccache directory using pkgconfig... /usr/lib/guile/2.2/site-ccache checking for Guile extensions directory... /usr/lib/guile/2.2/extensions checking for GUILE... yes checking whether GNU Guile is recent enough... yes checking whether gcc supports -fgnu89-inline... yes checking for scm_gc_malloc_pointerless... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating ldd.sh config.status: creating guile/pre-inst-guile config.status: creating Makefile config.status: creating doc/Makefile config.status: creating doc/credentials/Makefile config.status: creating doc/credentials/srp/Makefile config.status: creating doc/credentials/x509/Makefile config.status: creating doc/doxygen/Doxyfile config.status: creating doc/examples/Makefile config.status: creating doc/latex/Makefile config.status: creating doc/manpages/Makefile config.status: creating doc/reference/Makefile config.status: creating doc/reference/version.xml config.status: creating doc/scripts/Makefile config.status: creating extra/Makefile config.status: creating extra/includes/Makefile config.status: creating libdane/Makefile config.status: creating libdane/includes/Makefile config.status: creating libdane/gnutls-dane.pc config.status: creating gl/Makefile config.status: creating guile/Makefile config.status: creating guile/src/Makefile config.status: creating lib/Makefile config.status: creating lib/accelerated/Makefile config.status: creating lib/accelerated/x86/Makefile config.status: creating lib/accelerated/aarch64/Makefile config.status: creating lib/algorithms/Makefile config.status: creating lib/auth/Makefile config.status: creating lib/ext/Makefile config.status: creating lib/extras/Makefile config.status: creating lib/gnutls.pc config.status: creating lib/includes/Makefile config.status: creating lib/includes/gnutls/gnutls.h config.status: creating lib/minitasn1/Makefile config.status: creating lib/nettle/Makefile config.status: creating lib/x509/Makefile config.status: creating lib/unistring/Makefile config.status: creating po/Makefile.in config.status: creating src/Makefile config.status: creating src/gl/Makefile config.status: creating src/gl/tests/Makefile config.status: creating tests/Makefile config.status: creating tests/windows/Makefile config.status: creating tests/cert-tests/Makefile config.status: creating tests/slow/Makefile config.status: creating tests/suite/Makefile config.status: creating fuzz/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile config.status: executing libtool commands configure: summary of build options: version: 3.7.8 shared 64:2:34 Host/Target system: riscv64-unknown-linux-gnu Build system: riscv64-unknown-linux-gnu Install prefix: /usr Compiler: gcc Valgrind: no CFlags: -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/gnutls/src=/usr/src/debug -flto=auto Library types: Shared=yes, Static=no Local libtasn1: no Local unistring: no Use nettle-mini: no Documentation: yes (manpages: yes) configure: External hardware support: /dev/crypto: no AF_ALG support: no Hardware accel: none Padlock accel: no Random gen. variant: getrandom PKCS#11 support: yes TPM support: no TPM2 support: yes KTLS support: no configure: TPM2 library: tss2-esys tss2-mu tss2-tctildr configure: Optional features: (note that included applications might not compile properly if features are disabled) SSL3.0 support: no SSL2.0 client hello: yes Allow SHA1 sign: no DTLS-SRTP support: yes ALPN support: yes OCSP support: yes SRP support: yes PSK support: yes DHE support: yes ECDHE support: yes GOST support: yes Anon auth support: yes Heartbeat support: yes IDNA support: IDNA 2008 (libidn2) Non-SuiteB curves: yes FIPS140 mode: no Strict DER time: yes configure: Optional libraries: Guile wrappers: yes C++ library: yes DANE library: no OpenSSL compat: yes configure: System files: Trust store pkcs11: pkcs11: Trust store dir: Trust store file: Blacklist file: CRL file: Configuration file: /etc/gnutls/config DNSSEC root key file: /etc/unbound/root.key configure: WARNING: *** *** The DNSSEC root key file in /etc/unbound/root.key was not found. *** This file is needed for the verification of DNSSEC responses. *** Use the command: unbound-anchor -a "/etc/unbound/root.key" *** to generate or update it. *** make all-recursive make[1]: Entering directory '/build/gnutls/src/gnutls-3.7.8' Making all in gl make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/gl' GEN limits.h GEN alloca.h GEN netdb.h GEN fcntl.h GEN stdio.h GEN inttypes.h GEN string.h GEN strings.h GEN stdlib.h GEN time.h GEN arpa/inet.h GEN sys/stat.h GEN sys/socket.h GEN sys/time.h GEN sys/types.h GEN sys/uio.h GEN wchar.h GEN unistd.h make all-recursive make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/gl' make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/gl' CC hash.lo CC basename-lgpl.lo CC c-ctype.lo CC read-file.lo CC malloca.lo CC stripslash.lo CC bitrotate.lo CC hash-pjw-bare.lo CC c-strncasecmp.lo CC c-strcasecmp.lo CC stat-time.lo CC dirname-lgpl.lo CC fd-hook.lo CC cloexec.lo CC unistd.lo CC sys_socket.lo CC xsize.lo CC asnprintf.lo CC fcntl.lo CC printf-args.lo CC printf-parse.lo CC vasnprintf.lo CC glthread/lock.lo CC glthread/threadlib.lo CCLD libgnu.la ar: `u' modifier ignored since `D' is the default (see `U') make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/gl' make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/gl' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/gl' Making all in lib make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib' make all-recursive make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib' Making all in includes make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/includes' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/includes' Making all in x509 make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/x509' make all-am make[5]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/x509' CC crl.lo CC crl_write.lo CC common.lo CC key_encode.lo CC pkcs12_bag.lo CC time.lo CC key_decode.lo CC prov-seed.lo CC crq.lo CC dn.lo CC extensions.lo CC output.lo CC mpi.lo CC attributes.lo CC pkcs12.lo CC pkcs12_encr.lo CC pkcs7.lo CC pkcs7-attrs.lo CC pkcs7-crypt.lo CC privkey.lo CC privkey_pkcs8.lo CC privkey_pkcs8_pbes1.lo CC privkey_openssl.lo CC hostname-verify.lo CC sign.lo CC verify.lo CC x509.lo CC x509_dn.lo CC x509_write.lo CC name_constraints.lo CC verify-high.lo CC verify-high2.lo CC x509_ext.lo CC email-verify.lo CC pkcs7-output.lo CC virt-san.lo CC spki.lo CC tls_features.lo CC krb5.lo CC ip.lo CC ocsp.lo CC ocsp_output.lo CCLD libgnutls_x509.la ar: `u' modifier ignored since `D' is the default (see `U') make[5]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/x509' make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/x509' Making all in auth make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/auth' CC rsa_psk.lo CC srp_passwd.lo CC anon.lo CC dhe_psk.lo CC cert.lo CC srp_rsa.lo CC dh_common.lo CC rsa.lo CC psk.lo CC srp_kx.lo CC anon_ecdh.lo CC srp_sb64.lo CC ecdhe.lo CC vko_gost.lo CC psk_passwd.lo CC dhe.lo CCLD libgnutls_auth.la ar: `u' modifier ignored since `D' is the default (see `U') make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/auth' Making all in ext make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/ext' CC status_request.lo CC srp.lo CC etm.lo CC key_share.lo CC safe_renegotiation.lo CC max_record.lo CC heartbeat.lo CC server_name.lo CC signature.lo CC ext_master_secret.lo CC supported_versions.lo CC dumbfw.lo CC session_ticket.lo CC post_handshake.lo CC cookie.lo CC psk_ke_modes.lo CC pre_shared_key.lo CC supported_groups.lo CC ec_point_formats.lo CC early_data.lo CC record_size_limit.lo CC client_cert_type.lo CC server_cert_type.lo CC compress_certificate.lo CC alpn.lo CC srtp.lo CCLD libgnutls_ext.la ar: `u' modifier ignored since `D' is the default (see `U') make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/ext' Making all in algorithms make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/algorithms' CC cert_types.lo CC ecc.lo CC mac.lo CC kx.lo CC ciphers.lo CC secparams.lo CC ciphersuites.lo CC publickey.lo CC groups.lo CC sign.lo CC protocols.lo CCLD libgnutls_alg.la ar: `u' modifier ignored since `D' is the default (see `U') make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/algorithms' Making all in extras make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/extras' CC randomart.lo CC hex.lo CCLD libgnutls_extras.la ar: `u' modifier ignored since `D' is the default (see `U') make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/extras' Making all in accelerated make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/accelerated' make[5]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/accelerated' CC accelerated.lo CC cryptodev.lo CC cryptodev-gcm.lo CC afalg.lo CCLD libaccelerated.la ar: `u' modifier ignored since `D' is the default (see `U') make[5]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/accelerated' make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/accelerated' Making all in nettle make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/nettle' CC mpi.lo CC cipher.lo CC prf.lo CC init.lo CC pk.lo CC rnd.lo CC mac.lo CC sysrng-linux.lo CC gost_keywrap.lo CC rnd-fuzzer.lo CC int/provable-prime.lo CC int/rsa-keygen-fips186.lo CC int/dsa-validate.lo CC int/dsa-keygen-fips186.lo CC int/tls1-prf.lo CC int/dsa-compute-k.lo CC int/ecdsa-compute-k.lo CC int/mpn-base256.lo CC int/rsa-pad.lo CC gost/write-le32.lo CC gost/gost28147.lo CC gost/gost-wrap.lo CC gost/streebog.lo CC gost/streebog-meta.lo CC gost/hmac-streebog.lo CC gost/bignum-le.lo CC gost/gostdsa-mask.lo CC gost/magma.lo CC gost/kuznyechik.lo CC gost/acpkm.lo CC gost/cmac-magma.lo CC gost/cmac-kuznyechik.lo CCLD libcrypto.la ar: `u' modifier ignored since `D' is the default (see `U') make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/nettle' make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib' CC cipher-cbc.lo CC handshake-tls13.lo CC range.lo CC cipher.lo CC buffers.lo CC debug.lo CC handshake.lo CC mbuffers.lo CC record.lo CC errors.lo CC compress.lo CC priority.lo CC kx.lo CC hash_int.lo CC cipher_int.lo CC dh.lo CC session.lo CC db.lo CC x509_b64.lo CC hello_ext.lo CC auth.lo CC sslv2_compat.lo CC datum.lo CC session_pack.lo CC pk.lo CC mpi.lo CC cert-cred.lo CC global.lo CC constate.lo CC anon_cred.lo CC pkix_asn1_tab.lo CC gnutls_asn1_tab.lo CC mem.lo CC fingerprint.lo CC tls-sig.lo CC ecc.lo CC alert.lo CC privkey_raw.lo CC str-iconv.lo CC system.lo CC profiles.lo CC str-unicode.lo CC str.lo CC str-idna.lo CC state.lo CC cert-cred-x509.lo CC file.lo CC supplemental.lo CC random.lo CC crypto-api.lo CC privkey.lo CC pcert.lo CC pubkey.lo CC locks.lo CC dtls.lo CC system_override.lo CC crypto-backend.lo CC verify-tofu.lo CC pin.lo CC tpm.lo CC fips.lo CC safe-memfuncs.lo CC atfork.lo CC randomart.lo CC urls.lo CC prf.lo CC auto-verify.lo CC dh-session.lo CC cert-session.lo CC handshake-checks.lo CC dtls-sw.lo CC dh-primes.lo CC openpgp_compat.lo CC crypto-selftests.lo CC crypto-selftests-pk.lo CC secrets.lo CC extv.lo CC hello_ext_lib.lo CC ocsp-api.lo CC stek.lo CC cert-cred-rawpk.lo CC iov.lo CC system/ktls.lo CC vko.lo CC tpm2.lo CC tpm2_esys.lo CC system/keys-dummy.lo CC tls13-sig.lo CC pkcs11.lo CC pkcs11x.lo CC pkcs11_privkey.lo CC pkcs11_write.lo CC pkcs11_secret.lo CC pkcs11_int.lo CC srp.lo CC psk.lo CXX libgnutlsxx_la-gnutlsxx.lo CC system/certs.lo CC system/threads.lo CC system/fastopen.lo CC system/sockets.lo CC inih/ini.lo CC tls13/encrypted_extensions.lo CC tls13/certificate_request.lo CC tls13/certificate_verify.lo CC tls13/finished.lo CC tls13/key_update.lo CC tls13/hello_retry.lo CC tls13/session_ticket.lo CC tls13/certificate.lo CC tls13/early_data.lo CC tls13/post_handshake.lo CC tls13/psk_ext_parser.lo CC tls13/anti_replay.lo CCLD libgnutls.la CXXLD libgnutlsxx.la make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib' make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib' Making all in extra make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/extra' Making all in includes make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/extra/includes' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/extra/includes' make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/extra' CC openssl_compat.lo CC gnutls_openssl.lo CCLD libgnutls-openssl.la /usr/bin/nm: fd-hook.o: no symbols /usr/bin/nm: sys_socket.o: no symbols /usr/bin/nm: threadlib.o: no symbols /usr/bin/nm: unistd.o: no symbols make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/extra' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/extra' Making all in po make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/po' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/po' Making all in src/gl make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl' GEN alloca.h GEN fcntl.h GEN limits.h GEN inttypes.h GEN stdio.h GEN signal.h GEN arpa/inet.h GEN strings.h GEN netdb.h GEN string.h GEN stdlib.h GEN sys/socket.h GEN sys/types.h GEN sys/time.h GEN sys/select.h GEN sys/stat.h GEN sys/uio.h GEN time.h GEN unistd.h GEN wchar.h make all-recursive make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl' Making all in . make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl' CC close-stream.lo CC cloexec.lo CC c-ctype.lo CC basename-lgpl.lo CC c-strcasecmp.lo CC gettime.lo CC c-strncasecmp.lo CC bitrotate.lo CC hash-pjw-bare.lo CC getprogname.lo CC fd-hook.lo CC hash.lo CC gl_list.lo CC gl_linked_list.lo CC exitfail.lo CC malloca.lo CC nstrftime.lo CC parse-datetime.lo CC progname.lo CC read-file.lo CC stat-time.lo CC sockets.lo CC sys_socket.lo CC glthread/threadlib.lo CC timespec.lo CC unistd.lo CC xmalloc.lo CC xalloc-die.lo CC gl_xlist.lo CC xsize.lo CC asnprintf.lo CC fcntl.lo CC mktime.lo CC printf-args.lo CC time_rz.lo CC printf-parse.lo CC vasnprintf.lo CC glthread/lock.lo CCLD libgnu_gpl.la ar: `u' modifier ignored since `D' is the default (see `U') make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl' Making all in tests make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' GEN ctype.h GEN langinfo.h GEN locale.h GEN pthread.h GEN sched.h GEN sys/ioctl.h make all-recursive make[5]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' Making all in . make[6]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make[6]: Nothing to be done for 'all-am'. make[6]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make[5]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl' Making all in src make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src' make all-am make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src' CC gnutls-serv-options.lo CC cli-debug.o CC certtool-cfg.lo CC gnutls-cli-debug-options.lo CC psk.o CC psktool-options.lo CC cfg.lo CC certtool-options.lo CC tests.o CC certtool.o CC socket.o CC certtool-common.o CC certtool-extras.o CC serv.o CC udp-serv.o CC common.o serv.c: In function 'terminate': serv.c:1141:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1141 | write(STDERR_FILENO, buf, p - buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC cli.o CC benchmark-cipher.o CC benchmark.o CC benchmark-tls.o CC ocsptool-common.o CC gnutls-cli-options.lo CC srptool.o CC srptool-options.lo CC ocsptool.o CC ocsptool-options.lo CC p11tool-p11tool.o CC p11tool-pkcs11.o CC p11tool-certtool-common.o CC p11tool-certtool-extras.o CC p11tool-common.o CC p11tool-options.lo CC systemkey.o CC systemkey-tool-options.lo CC dumpcfg-cfg.o CC danetool-options.lo CCLD libcmd-psk.la CCLD libcmd-cli-debug.la CCLD libcmd-serv.la CCLD libcmd-srp.la CCLD libcmd-ocsp.la CCLD libcmd-cli.la CCLD dumpcfg ar: `u' modifier ignored since `D' is the default (see `U') CCLD psktool CCLD libcerttool-cfg.la ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') CCLD gnutls-cli-debug ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') CCLD ocsptool CCLD gnutls-serv CCLD gnutls-cli CCLD srptool copying selected object files to avoid basename conflicts... ar: `u' modifier ignored since `D' is the default (see `U') CCLD libcmd-systemkey.la CCLD libcmd-p11tool.la CCLD libcmd-certtool.la CCLD libcmd-danetool.la copying selected object files to avoid basename conflicts... copying selected object files to avoid basename conflicts... copying selected object files to avoid basename conflicts... copying selected object files to avoid basename conflicts... ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') CCLD systemkey CCLD p11tool ar: `u' modifier ignored since `D' is the default (see `U') CCLD certtool cli.c: In function 'try_resume': cli.c:1059:28: warning: 'size' may be used uninitialized [-Wmaybe-uninitialized] 1059 | edata.size = size; | ^ cli.c:1051:24: note: 'size' was declared here 1051 | size_t size; | ^ In function 'apply_relative_time': lto1: warning: use of uninitialized value 'rel.month' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.month' here | lto1: warning: use of uninitialized value 'rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.seconds' here | lto1: warning: use of uninitialized value 'rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.minutes' here | lto1: warning: use of uninitialized value 'rel.day' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.day' here | In function 'digits_to_date_time': lto1: warning: use of uninitialized value 'text_int.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (28) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 29-30 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ ~ | | | | | | (29) entry to 'digits_to_date_time' (30) region created on stack here | 'digits_to_date_time': event 31 | |lto1: | (31): use of uninitialized value 'text_int.value' here | lto1: warning: use of uninitialized value 'text_int.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (28) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 29-30 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ ~ | | | | | | (29) entry to 'digits_to_date_time' (30) region created on stack here | 'digits_to_date_time': event 31 | |lto1: | (31): use of uninitialized value 'text_int.digits' here | In function 'apply_relative_time': lto1: warning: use of uninitialized value 'rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.ns' here | lto1: warning: use of uninitialized value 'rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.hour' here | lto1: warning: use of uninitialized value 'rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.seconds' here | lto1: warning: use of uninitialized value 'rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.minutes' here | lto1: warning: use of uninitialized value 'rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.ns' here | lto1: warning: use of uninitialized value 'rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.hour' here | gl/parse-datetime.c: In function 'yyparse': gl/parse-datetime.c:1733:12: warning: use of uninitialized value 'yylval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1733 | *++yyvsp = yylval; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1530 | YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-59 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'false' branch (when 'yyn_242 > 0')... |...... | 1726 | if (yyerrstatus) | | ~ ~ | | | | | | | (57) following 'false' branch (when 'yyerrstatus_209 == 0')... | | (56) ...to here |...... | 1730 | YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); | | ~ | | | | | (58) ...to here |...... | 1733 | *++yyvsp = yylval; | | ~ | | | | | (59) use of uninitialized value 'yylval' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '*_15' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '*_15' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '*_15' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '*_15' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.seconds' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.minutes' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.day' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.day' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->timespec.tv_nsec' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.hour' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.ns' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.ns' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.minutes' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->timespec.tv_nsec' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.day' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.day' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.seconds' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.hour' here | gl/parse-datetime.y:610:21: warning: use of uninitialized value 'yyvsp_216->timespec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 610 | pc->seconds = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 4:' branch... | 1771 | { | 1772 | case 4: /* timespec: '@' seconds */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:610:21: | 610 | pc->seconds = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->timespec' here | gl/parse-datetime.y:610:21: warning: use of uninitialized value 'yyvsp_216->timespec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 4:' branch... | 1771 | { | 1772 | case 4: /* timespec: '@' seconds */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:610:21: | 610 | pc->seconds = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->timespec' here | gl/parse-datetime.y:610:21: warning: use of uninitialized value 'yyvsp_216->timespec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 4:' branch... | 1771 | { | 1772 | case 4: /* timespec: '@' seconds */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:610:21: | 610 | pc->seconds = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->timespec' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:678:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 678 | pc->meridian = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:678:33: | 678 | pc->meridian = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:678:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:678:33: | 678 | pc->meridian = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:678:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:678:33: | 678 | pc->meridian = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:683:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 683 | pc->meridian = $4; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:683:33: | 683 | pc->meridian = $4; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:683:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:683:33: | 683 | pc->meridian = $4; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:683:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:683:33: | 683 | pc->meridian = $4; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:688:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 688 | pc->meridian = $6; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:688:33: | 688 | pc->meridian = $6; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:688:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:688:33: | 688 | pc->meridian = $6; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:688:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:688:33: | 688 | pc->meridian = $6; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (16) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (19) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (28) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (42) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (50) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:743:36: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 743 | { pc->local_isdst = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 28:' branch... |...... | 1923 | case 28: /* local_zone: tLOCAL_ZONE */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:743:36: | 743 | { pc->local_isdst = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:743:36: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 28:' branch... |...... | 1923 | case 28: /* local_zone: tLOCAL_ZONE */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:743:36: | 743 | { pc->local_isdst = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:743:36: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 28:' branch... |...... | 1923 | case 28: /* local_zone: tLOCAL_ZONE */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:743:36: | 743 | { pc->local_isdst = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:755:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 755 | { pc->time_zone = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 30:' branch... |...... | 1938 | case 30: /* zone: tZONE */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:755:34: | 755 | { pc->time_zone = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:755:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 30:' branch... |...... | 1938 | case 30: /* zone: tZONE */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:755:34: | 755 | { pc->time_zone = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:755:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 30:' branch... |...... | 1938 | case 30: /* zone: tZONE */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:755:34: | 755 | { pc->time_zone = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 759 | { pc->time_zone = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:760:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:760:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:760:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:765:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 33:' branch... |...... | 1959 | case 33: /* zone: 'T' relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:765:15: | 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:765:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 33:' branch... |...... | 1959 | case 33: /* zone: 'T' relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:765:15: | 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:765:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 33:' branch... |...... | 1959 | case 33: /* zone: 'T' relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:765:15: | 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (16) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (19) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (28) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (42) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (50) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:770:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | ^ 'yyparse': events 1-16 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (2) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (3) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (5) following 'false' branch (when 'yystate_206 != 12')... | | (4) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (6) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (7) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (9) following 'true' branch (when 'yychar_193 == -2')... | | (8) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (10) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (11) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (12) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (13) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (14) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (15) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (16) ...to here | 'yyparse': event 17 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (17) calling 'time_zone_hhmm' from 'yyparse' | +--> 'time_zone_hhmm': events 18-20 | | 1208 | time_zone_hhmm (parser_control *pc, textint s, intmax_t mm) | | ^ | | | | | (18) entry to 'time_zone_hhmm' |...... | 1228 | if (overflow || ! (-24 * 60 <= n_minutes && n_minutes <= 24 * 60)) | | ~ | | | | | (19) following 'false' branch... | 1229 | return false; | 1230 | pc->time_zone = n_minutes * 60; | | ~ | | | | | (20) ...to here | <------+ | 'yyparse': events 21-24 | | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ~ ^ | | | | | | | (21) returning to 'yyparse' from 'time_zone_hhmm' | | (22) following 'true' branch... | 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | | ~ ~ | | | | | | | (24) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | | (23) ...to here | gl/parse-datetime.y:770:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | ^ 'yyparse': events 1-28 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (2) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (3) following 'false' branch... | | (21) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (5) following 'false' branch (when 'yystate_206 != 12')... | | | (23) following 'false' branch (when 'yystate_206 != 12')... | | (4) ...to here | | (22) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (6) ...to here | | (24) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (7) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (9) following 'true' branch (when 'yychar_193 == -2')... | | (8) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (10) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (11) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (13) following 'true' branch (when 'yychar_194 == 256')... | | (12) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (25) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (26) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (27) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (28) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (16) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (17) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (18) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (19) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (20) ...to here | 'yyparse': event 29 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (29) calling 'time_zone_hhmm' from 'yyparse' | +--> 'time_zone_hhmm': events 30-32 | | 1208 | time_zone_hhmm (parser_control *pc, textint s, intmax_t mm) | | ^ | | | | | (30) entry to 'time_zone_hhmm' |...... | 1228 | if (overflow || ! (-24 * 60 <= n_minutes && n_minutes <= 24 * 60)) | | ~ | | | | | (31) following 'false' branch... | 1229 | return false; | 1230 | pc->time_zone = n_minutes * 60; | | ~ | | | | | (32) ...to here | <------+ | 'yyparse': events 33-36 | | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ~ ^ | | | | | | | (33) returning to 'yyparse' from 'time_zone_hhmm' | | (34) following 'true' branch... | 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | | ~ ~ | | | | | | | (36) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | | (35) ...to here | gl/parse-datetime.y:772:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 772 | { pc->time_zone = $1 + 60 * 60; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 35:' branch... |...... | 1975 | case 35: /* zone: tDAYZONE */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:772:34: | 772 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:772:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 35:' branch... |...... | 1975 | case 35: /* zone: tDAYZONE */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:772:34: | 772 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:772:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 35:' branch... |...... | 1975 | case 35: /* zone: tDAYZONE */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:772:34: | 772 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 774 | { pc->time_zone = $1 + 60 * 60; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:781:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 781 | pc->day_number = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 37:' branch... |...... | 1987 | case 37: /* day: tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:781:35: | 781 | pc->day_number = $1; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:781:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 37:' branch... |...... | 1987 | case 37: /* day: tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:781:35: | 781 | pc->day_number = $1; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:781:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 37:' branch... |...... | 1987 | case 37: /* day: tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:781:35: | 781 | pc->day_number = $1; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 786 | pc->day_number = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 790 | pc->day_ordinal = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:791:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 791 | pc->day_number = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:791:35: | 791 | pc->day_number = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:791:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:791:35: | 791 | pc->day_number = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:791:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:791:35: | 791 | pc->day_number = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 796 | pc->day_ordinal = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:797:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 797 | pc->day_number = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:797:35: | 797 | pc->day_number = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:797:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:797:35: | 797 | pc->day_number = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:797:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:797:35: | 797 | pc->day_number = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 805 | pc->month = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 806 | pc->day = $3.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 815 | if (4 <= $1.digits) | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (18) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (21) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (30) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (52) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:838:22: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 838 | pc->year = $5; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 838 | pc->year = $5; | | ~ | | | | | (18) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:838:22: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 838 | pc->year = $5; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 838 | pc->year = $5; | | ~ | | | | | (21) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:838:22: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 838 | pc->year = $5; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 838 | pc->year = $5; | | ~ | | | | | (52) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 844 | pc->day = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 845 | pc->month = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (17) ...to here (18) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (20) ...to here (21) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (29) ...to here (30) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-50 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (49) ...to here (50) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 852 | pc->month = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (18) use of uninitialized value 'yyvsp_216->textintval.value' here | | (17) ...to here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (21) use of uninitialized value 'yyvsp_216->textintval.value' here | | (20) ...to here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (30) use of uninitialized value 'yyvsp_216->textintval.value' here | | (29) ...to here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-50 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | | (49) ...to here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-20 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (18) following 'false' branch... | | (17) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (19) ...to here (20) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-23 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (21) following 'false' branch... | | (20) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (22) ...to here (23) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-32 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (30) following 'false' branch... | | (29) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (31) ...to here (32) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-52 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (50) following 'false' branch... | | (49) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (51) ...to here (52) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 859 | pc->month = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 860 | pc->day = $2.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 864 | pc->month = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 865 | pc->day = $2.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:866:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 866 | pc->year = $4; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:866:18: | 866 | pc->year = $4; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:866:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:866:18: | 866 | pc->year = $4; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:866:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:866:18: | 866 | pc->year = $4; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 870 | pc->day = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:871:30: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 871 | pc->month = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:871:30: | 871 | pc->month = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:871:30: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:871:30: | 871 | pc->month = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:871:30: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:871:30: | 871 | pc->month = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 875 | pc->day = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 876 | pc->month = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:877:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 877 | pc->year = $3; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:877:18: | 877 | pc->year = $3; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:877:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:877:18: | 877 | pc->year = $3; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:877:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:877:18: | 877 | pc->year = $3; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 886 | pc->year = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (18) use of uninitialized value 'yyvsp_216->textintval.value' here | | (17) ...to here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (21) use of uninitialized value 'yyvsp_216->textintval.value' here | | (20) ...to here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (30) use of uninitialized value 'yyvsp_216->textintval.value' here | | (29) ...to here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-50 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | | (49) ...to here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:66: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:894:66: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:894:66: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:894:66: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:894:66: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:894:66: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:896:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 52:' branch... |...... | 2150 | case 52: /* rel: relunit */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:896:15: | 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:896:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 52:' branch... |...... | 2150 | case 52: /* rel: relunit */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:896:15: | 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:896:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 52:' branch... |...... | 2150 | case 52: /* rel: relunit */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:896:15: | 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:898:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 53:' branch... |...... | 2156 | case 53: /* rel: dayshift */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:898:15: | 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:898:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 53:' branch... |...... | 2156 | case 53: /* rel: dayshift */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:898:15: | 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:898:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 53:' branch... |...... | 2156 | case 53: /* rel: dayshift */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:898:15: | 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:921:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 62:' branch... |...... | 2212 | case 62: /* relunit: tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:921:67: | 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:921:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 62:' branch... |...... | 2212 | case 62: /* relunit: tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:921:67: | 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:921:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 62:' branch... |...... | 2212 | case 62: /* relunit: tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:921:67: | 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:965:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 81:' branch... |...... | 2321 | case 81: /* dayshift: tDAY_SHIFT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:965:67: | 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:965:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 81:' branch... |...... | 2321 | case 81: /* dayshift: tDAY_SHIFT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:965:67: | 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:965:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 81:' branch... |...... | 2321 | case 81: /* dayshift: tDAY_SHIFT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:965:67: | 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 973 | { if (time_overflow ($1.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 980 | { if (time_overflow ($1.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:986:9: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 986 | { digits_to_date_time (pc, $1); } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:986:9: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:986:9: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 994 | digits_to_date_time (pc, $1); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (16) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (19) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (28) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (42) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (50) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:995:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'yyparse': events 1-16 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (2) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (3) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (5) following 'false' branch (when 'yystate_206 != 12')... | | (4) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (6) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (7) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (9) following 'true' branch (when 'yychar_193 == -2')... | | (8) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (10) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (11) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (12) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (13) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (14) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (15) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (16) ...to here | 'yyparse': event 17 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (17) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 18-20 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ | | | | | (18) entry to 'digits_to_date_time' |...... | 273 | if (4 < text_int.digits) | | ~ | | | | | (19) following 'true' branch (when 'text_int$digits_35 > 4')... | 274 | { | 275 | pc->dates_seen++; | | ~ | | | | | (20) ...to here | <------+ | 'yyparse': events 21-22 | | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (21) returning to 'yyparse' from 'digits_to_date_time' | 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ~ | | | | | (22) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:995:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-58 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (57) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (58) ...to here | 'yyparse': event 59 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (59) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 60-64 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ | | | | | (60) entry to 'digits_to_date_time' | 264 | { | 265 | if (pc->dates_seen && ! pc->year.digits | | ~ | | | | | (61) following 'false' branch... |...... | 273 | if (4 < text_int.digits) | | ~ ~ | | | | | | | (63) following 'true' branch (when 'text_int$digits_35 > 4')... | | (62) ...to here | 274 | { | 275 | pc->dates_seen++; | | ~ | | | | | (64) ...to here | <------+ | 'yyparse': events 65-66 | | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (65) returning to 'yyparse' from 'digits_to_date_time' | 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ~ | | | | | (66) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1003 | { $$ = $2.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | In function 'digits_to_date_time': lto1: warning: use of uninitialized value 'text_int.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (28) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 29-30 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ ~ | | | | | | (29) entry to 'digits_to_date_time' (30) region created on stack here | 'digits_to_date_time': event 31 | |lto1: | (31): use of uninitialized value 'text_int.value' here | In function 'apply_relative_time': lto1: warning: use of uninitialized value 'rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.minutes' here | lto1: warning: use of uninitialized value 'rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.seconds' here | lto1: warning: use of uninitialized value 'rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.ns' here | lto1: warning: use of uninitialized value 'rel.day' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.day' here | lto1: warning: use of uninitialized value 'rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.hour' here | In function 'digits_to_date_time': lto1: warning: use of uninitialized value 'text_int.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (28) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 29-30 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ ~ | | | | | | (29) entry to 'digits_to_date_time' (30) region created on stack here | 'digits_to_date_time': event 31 | |lto1: | (31): use of uninitialized value 'text_int.digits' here | In function 'apply_relative_time': lto1: warning: use of uninitialized value 'rel.month' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.month' here | lto1: warning: use of uninitialized value 'rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.hour' here | lto1: warning: use of uninitialized value 'rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.ns' here | lto1: warning: use of uninitialized value 'rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.seconds' here | lto1: warning: use of uninitialized value 'rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.minutes' here | gl/parse-datetime.c: In function 'yyparse': gl/parse-datetime.c:1733:12: warning: use of uninitialized value 'yylval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1733 | *++yyvsp = yylval; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1530 | YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-59 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'false' branch (when 'yyn_242 > 0')... |...... | 1726 | if (yyerrstatus) | | ~ ~ | | | | | | | (57) following 'false' branch (when 'yyerrstatus_209 == 0')... | | (56) ...to here |...... | 1730 | YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); | | ~ | | | | | (58) ...to here |...... | 1733 | *++yyvsp = yylval; | | ~ | | | | | (59) use of uninitialized value 'yylval' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '*_15' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '*_15' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '*_15' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '*_15' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.minutes' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.seconds' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.day' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.day' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->timespec.tv_nsec' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.ns' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.hour' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.minutes' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.seconds' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.day' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.day' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->timespec.tv_nsec' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.hour' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.ns' here | gl/parse-datetime.y:610:21: warning: use of uninitialized value 'yyvsp_216->timespec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 610 | pc->seconds = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 4:' branch... | 1771 | { | 1772 | case 4: /* timespec: '@' seconds */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:610:21: | 610 | pc->seconds = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->timespec' here | gl/parse-datetime.y:610:21: warning: use of uninitialized value 'yyvsp_216->timespec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 4:' branch... | 1771 | { | 1772 | case 4: /* timespec: '@' seconds */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:610:21: | 610 | pc->seconds = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->timespec' here | gl/parse-datetime.y:610:21: warning: use of uninitialized value 'yyvsp_216->timespec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 4:' branch... | 1771 | { | 1772 | case 4: /* timespec: '@' seconds */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:610:21: | 610 | pc->seconds = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->timespec' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:678:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 678 | pc->meridian = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:678:33: | 678 | pc->meridian = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:678:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:678:33: | 678 | pc->meridian = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:678:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:678:33: | 678 | pc->meridian = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:683:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 683 | pc->meridian = $4; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:683:33: | 683 | pc->meridian = $4; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:683:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:683:33: | 683 | pc->meridian = $4; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:683:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:683:33: | 683 | pc->meridian = $4; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:688:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 688 | pc->meridian = $6; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:688:33: | 688 | pc->meridian = $6; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:688:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:688:33: | 688 | pc->meridian = $6; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:688:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:688:33: | 688 | pc->meridian = $6; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (16) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (19) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (28) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (42) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (50) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:743:36: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 743 | { pc->local_isdst = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 28:' branch... |...... | 1923 | case 28: /* local_zone: tLOCAL_ZONE */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:743:36: | 743 | { pc->local_isdst = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:743:36: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 28:' branch... |...... | 1923 | case 28: /* local_zone: tLOCAL_ZONE */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:743:36: | 743 | { pc->local_isdst = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:743:36: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 28:' branch... |...... | 1923 | case 28: /* local_zone: tLOCAL_ZONE */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:743:36: | 743 | { pc->local_isdst = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:755:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 755 | { pc->time_zone = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 30:' branch... |...... | 1938 | case 30: /* zone: tZONE */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:755:34: | 755 | { pc->time_zone = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:755:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 30:' branch... |...... | 1938 | case 30: /* zone: tZONE */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:755:34: | 755 | { pc->time_zone = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:755:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 30:' branch... |...... | 1938 | case 30: /* zone: tZONE */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:755:34: | 755 | { pc->time_zone = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 759 | { pc->time_zone = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:760:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:760:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:760:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:765:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 33:' branch... |...... | 1959 | case 33: /* zone: 'T' relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:765:15: | 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:765:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 33:' branch... |...... | 1959 | case 33: /* zone: 'T' relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:765:15: | 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:765:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 33:' branch... |...... | 1959 | case 33: /* zone: 'T' relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:765:15: | 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (16) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (19) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (28) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (42) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (50) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:770:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | ^ 'yyparse': events 1-16 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (2) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (3) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (5) following 'false' branch (when 'yystate_206 != 12')... | | (4) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (6) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (7) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (9) following 'true' branch (when 'yychar_193 == -2')... | | (8) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (10) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (11) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (12) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (13) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (14) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (15) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (16) ...to here | 'yyparse': event 17 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (17) calling 'time_zone_hhmm' from 'yyparse' | +--> 'time_zone_hhmm': events 18-20 | | 1208 | time_zone_hhmm (parser_control *pc, textint s, intmax_t mm) | | ^ | | | | | (18) entry to 'time_zone_hhmm' |...... | 1228 | if (overflow || ! (-24 * 60 <= n_minutes && n_minutes <= 24 * 60)) | | ~ | | | | | (19) following 'false' branch... | 1229 | return false; | 1230 | pc->time_zone = n_minutes * 60; | | ~ | | | | | (20) ...to here | <------+ | 'yyparse': events 21-24 | | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ~ ^ | | | | | | | (21) returning to 'yyparse' from 'time_zone_hhmm' | | (22) following 'true' branch... | 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | | ~ ~ | | | | | | | (24) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | | (23) ...to here | gl/parse-datetime.y:770:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | ^ 'yyparse': events 1-28 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (2) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (3) following 'false' branch... | | (21) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (5) following 'false' branch (when 'yystate_206 != 12')... | | | (23) following 'false' branch (when 'yystate_206 != 12')... | | (4) ...to here | | (22) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (6) ...to here | | (24) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (7) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (9) following 'true' branch (when 'yychar_193 == -2')... | | (8) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (10) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (11) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (13) following 'true' branch (when 'yychar_194 == 256')... | | (12) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (25) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (26) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (27) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (28) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (16) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (17) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (18) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (19) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (20) ...to here | 'yyparse': event 29 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (29) calling 'time_zone_hhmm' from 'yyparse' | +--> 'time_zone_hhmm': events 30-32 | | 1208 | time_zone_hhmm (parser_control *pc, textint s, intmax_t mm) | | ^ | | | | | (30) entry to 'time_zone_hhmm' |...... | 1228 | if (overflow || ! (-24 * 60 <= n_minutes && n_minutes <= 24 * 60)) | | ~ | | | | | (31) following 'false' branch... | 1229 | return false; | 1230 | pc->time_zone = n_minutes * 60; | | ~ | | | | | (32) ...to here | <------+ | 'yyparse': events 33-36 | | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ~ ^ | | | | | | | (33) returning to 'yyparse' from 'time_zone_hhmm' | | (34) following 'true' branch... | 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | | ~ ~ | | | | | | | (36) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | | (35) ...to here | gl/parse-datetime.y:772:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 772 | { pc->time_zone = $1 + 60 * 60; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 35:' branch... |...... | 1975 | case 35: /* zone: tDAYZONE */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:772:34: | 772 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:772:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 35:' branch... |...... | 1975 | case 35: /* zone: tDAYZONE */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:772:34: | 772 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:772:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 35:' branch... |...... | 1975 | case 35: /* zone: tDAYZONE */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:772:34: | 772 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 774 | { pc->time_zone = $1 + 60 * 60; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:781:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 781 | pc->day_number = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 37:' branch... |...... | 1987 | case 37: /* day: tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:781:35: | 781 | pc->day_number = $1; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:781:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 37:' branch... |...... | 1987 | case 37: /* day: tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:781:35: | 781 | pc->day_number = $1; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:781:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 37:' branch... |...... | 1987 | case 37: /* day: tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:781:35: | 781 | pc->day_number = $1; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 786 | pc->day_number = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 790 | pc->day_ordinal = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:791:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 791 | pc->day_number = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:791:35: | 791 | pc->day_number = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:791:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:791:35: | 791 | pc->day_number = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:791:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:791:35: | 791 | pc->day_number = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 796 | pc->day_ordinal = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:797:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 797 | pc->day_number = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:797:35: | 797 | pc->day_number = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:797:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:797:35: | 797 | pc->day_number = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:797:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:797:35: | 797 | pc->day_number = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 805 | pc->month = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 806 | pc->day = $3.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 815 | if (4 <= $1.digits) | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (18) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (21) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (30) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (52) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:838:22: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 838 | pc->year = $5; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 838 | pc->year = $5; | | ~ | | | | | (18) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:838:22: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 838 | pc->year = $5; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 838 | pc->year = $5; | | ~ | | | | | (21) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:838:22: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 838 | pc->year = $5; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 838 | pc->year = $5; | | ~ | | | | | (52) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 844 | pc->day = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 845 | pc->month = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (17) ...to here (18) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (20) ...to here (21) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (29) ...to here (30) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-50 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (49) ...to here (50) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 852 | pc->month = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (18) use of uninitialized value 'yyvsp_216->textintval.value' here | | (17) ...to here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (21) use of uninitialized value 'yyvsp_216->textintval.value' here | | (20) ...to here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (30) use of uninitialized value 'yyvsp_216->textintval.value' here | | (29) ...to here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-50 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | | (49) ...to here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-20 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (18) following 'false' branch... | | (17) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (19) ...to here (20) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-23 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (21) following 'false' branch... | | (20) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (22) ...to here (23) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-32 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (30) following 'false' branch... | | (29) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (31) ...to here (32) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-52 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (50) following 'false' branch... | | (49) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (51) ...to here (52) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 859 | pc->month = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 860 | pc->day = $2.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 864 | pc->month = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 865 | pc->day = $2.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:866:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 866 | pc->year = $4; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:866:18: | 866 | pc->year = $4; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:866:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:866:18: | 866 | pc->year = $4; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:866:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:866:18: | 866 | pc->year = $4; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 870 | pc->day = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:871:30: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 871 | pc->month = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:871:30: | 871 | pc->month = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:871:30: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:871:30: | 871 | pc->month = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:871:30: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:871:30: | 871 | pc->month = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 875 | pc->day = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 876 | pc->month = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:877:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 877 | pc->year = $3; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:877:18: | 877 | pc->year = $3; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:877:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:877:18: | 877 | pc->year = $3; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:877:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:877:18: | 877 | pc->year = $3; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 886 | pc->year = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (18) use of uninitialized value 'yyvsp_216->textintval.value' here | | (17) ...to here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (21) use of uninitialized value 'yyvsp_216->textintval.value' here | | (20) ...to here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (30) use of uninitialized value 'yyvsp_216->textintval.value' here | | (29) ...to here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-50 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | | (49) ...to here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:66: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:894:66: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:894:66: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:894:66: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:894:66: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:894:66: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:896:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 52:' branch... |...... | 2150 | case 52: /* rel: relunit */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:896:15: | 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:896:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 52:' branch... |...... | 2150 | case 52: /* rel: relunit */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:896:15: | 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:896:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 52:' branch... |...... | 2150 | case 52: /* rel: relunit */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:896:15: | 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:898:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 53:' branch... |...... | 2156 | case 53: /* rel: dayshift */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:898:15: | 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:898:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 53:' branch... |...... | 2156 | case 53: /* rel: dayshift */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:898:15: | 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:898:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 53:' branch... |...... | 2156 | case 53: /* rel: dayshift */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:898:15: | 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:921:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 62:' branch... |...... | 2212 | case 62: /* relunit: tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:921:67: | 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:921:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 62:' branch... |...... | 2212 | case 62: /* relunit: tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:921:67: | 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:921:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 62:' branch... |...... | 2212 | case 62: /* relunit: tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:921:67: | 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:965:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 81:' branch... |...... | 2321 | case 81: /* dayshift: tDAY_SHIFT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:965:67: | 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:965:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 81:' branch... |...... | 2321 | case 81: /* dayshift: tDAY_SHIFT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:965:67: | 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:965:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 81:' branch... |...... | 2321 | case 81: /* dayshift: tDAY_SHIFT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:965:67: | 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 973 | { if (time_overflow ($1.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 980 | { if (time_overflow ($1.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:986:9: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 986 | { digits_to_date_time (pc, $1); } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:986:9: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:986:9: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 994 | digits_to_date_time (pc, $1); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (16) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (19) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (28) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (42) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (50) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:995:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'yyparse': events 1-16 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (2) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (3) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (5) following 'false' branch (when 'yystate_206 != 12')... | | (4) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (6) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (7) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (9) following 'true' branch (when 'yychar_193 == -2')... | | (8) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (10) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (11) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (12) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (13) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (14) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (15) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (16) ...to here | 'yyparse': event 17 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (17) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 18-20 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ | | | | | (18) entry to 'digits_to_date_time' |...... | 273 | if (4 < text_int.digits) | | ~ | | | | | (19) following 'true' branch (when 'text_int$digits_35 > 4')... | 274 | { | 275 | pc->dates_seen++; | | ~ | | | | | (20) ...to here | <------+ | 'yyparse': events 21-22 | | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (21) returning to 'yyparse' from 'digits_to_date_time' | 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ~ | | | | | (22) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:995:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-58 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (57) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (58) ...to here | 'yyparse': event 59 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (59) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 60-64 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ | | | | | (60) entry to 'digits_to_date_time' | 264 | { | 265 | if (pc->dates_seen && ! pc->year.digits | | ~ | | | | | (61) following 'false' branch... |...... | 273 | if (4 < text_int.digits) | | ~ ~ | | | | | | | (63) following 'true' branch (when 'text_int$digits_35 > 4')... | | (62) ...to here | 274 | { | 275 | pc->dates_seen++; | | ~ | | | | | (64) ...to here | <------+ | 'yyparse': events 65-66 | | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (65) returning to 'yyparse' from 'digits_to_date_time' | 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ~ | | | | | (66) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1003 | { $$ = $2.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | In function 'apply_relative_time': lto1: warning: use of uninitialized value 'rel.day' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.day' here | lto1: warning: use of uninitialized value 'rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.hour' here | lto1: warning: use of uninitialized value 'rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.ns' here | lto1: warning: use of uninitialized value 'rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.seconds' here | lto1: warning: use of uninitialized value 'rel.month' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.month' here | lto1: warning: use of uninitialized value 'rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (28) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 29-30 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (29) entry to 'apply_relative_time' (30) region created on stack here | 'apply_relative_time': event 31 | |lto1: | (31): use of uninitialized value 'rel.minutes' here | In function 'digits_to_date_time': lto1: warning: use of uninitialized value 'text_int.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (28) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 29-30 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ ~ | | | | | | (29) entry to 'digits_to_date_time' (30) region created on stack here | 'digits_to_date_time': event 31 | |lto1: | (31): use of uninitialized value 'text_int.digits' here | lto1: warning: use of uninitialized value 'text_int.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (28) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 29-30 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ ~ | | | | | | (29) entry to 'digits_to_date_time' (30) region created on stack here | 'digits_to_date_time': event 31 | |lto1: | (31): use of uninitialized value 'text_int.value' here | In function 'apply_relative_time': lto1: warning: use of uninitialized value 'rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.minutes' here | lto1: warning: use of uninitialized value 'rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.hour' here | lto1: warning: use of uninitialized value 'rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.seconds' here | lto1: warning: use of uninitialized value 'rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (10) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (12) following 'false' branch (when 'yystate_206 != 12')... | | (11) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (13) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (16) following 'true' branch (when 'yychar_193 == -2')... | | (15) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (17) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (18) calling 'yylex' from 'yyparse' | +--> 'yylex': event 19 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (19) entry to 'yylex' | 'yylex': events 20-21 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (20) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (21) ...to here | <------+ | 'yyparse': events 22-40 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (33) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (35) following 'false' branch (when 'yystate_206 != 12')... | | (34) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (36) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (22) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (23) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (25) following 'true' branch (when 'yychar_194 == 256')... | | (24) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (26) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (37) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (38) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (39) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (40) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (27) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (28) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (29) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (30) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (31) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (32) ...to here | 'yyparse': event 41 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (41) calling 'apply_relative_time' from 'yyparse' | +--> 'apply_relative_time': events 42-43 | | 304 | apply_relative_time (parser_control *pc, relative_time rel, int factor) | | ^ ~ | | | | | | (42) entry to 'apply_relative_time' (43) region created on stack here | 'apply_relative_time': event 44 | |lto1: | (44): use of uninitialized value 'rel.ns' here | gl/parse-datetime.c: In function 'yyparse': gl/parse-datetime.c:1733:12: warning: use of uninitialized value 'yylval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1733 | *++yyvsp = yylval; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1530 | YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-59 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'false' branch (when 'yyn_242 > 0')... |...... | 1726 | if (yyerrstatus) | | ~ ~ | | | | | | | (57) following 'false' branch (when 'yyerrstatus_209 == 0')... | | (56) ...to here |...... | 1730 | YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); | | ~ | | | | | (58) ...to here |...... | 1733 | *++yyvsp = yylval; | | ~ | | | | | (59) use of uninitialized value 'yylval' here | gl/parse-datetime.c:1733:12: warning: use of uninitialized value 'yylval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1733 | *++yyvsp = yylval; | ^ 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-62 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1530 | YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (60) following 'true' branch (when 'yychar_193 == -2')... | | (59) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (61) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (62) calling 'yylex' from 'yyparse' | +--> 'yylex': event 63 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (63) entry to 'yylex' | 'yylex': events 64-65 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (64) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (65) ...to here | <------+ | 'yyparse': events 66-73 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (66) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (67) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (68) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (69) following 'false' branch (when 'yyn_242 > 0')... |...... | 1726 | if (yyerrstatus) | | ~ ~ | | | | | | | (71) following 'false' branch (when 'yyerrstatus_209 == 0')... | | (70) ...to here |...... | 1730 | YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); | | ~ | | | | | (72) ...to here |...... | 1733 | *++yyvsp = yylval; | | ~ | | | | | (73) use of uninitialized value 'yylval' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '*_15' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '*_15' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '*_15' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '*_15' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-62 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (60) following 'true' branch (when 'yychar_193 == -2')... | | (59) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (61) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (62) calling 'yylex' from 'yyparse' | +--> 'yylex': event 63 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (63) entry to 'yylex' | 'yylex': events 64-65 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (64) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (65) ...to here | <------+ | 'yyparse': events 66-71 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (66) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (67) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (68) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (69) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (70) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (71) use of uninitialized value 'MEM <__time_t> [(union YYSTYPE *)_15]' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '*_15' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-62 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (60) following 'true' branch (when 'yychar_193 == -2')... | | (59) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (61) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (62) calling 'yylex' from 'yyparse' | +--> 'yylex': event 63 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (63) entry to 'yylex' | 'yylex': events 64-65 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (64) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (65) ...to here | <------+ | 'yyparse': events 66-71 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (66) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (67) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (68) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (69) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (70) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (71) use of uninitialized value '*_15' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->timespec.tv_nsec' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.seconds' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.ns' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.hour' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.minutes' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.day' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'yyparse': events 1-14 | | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (14) use of uninitialized value '_15->rel.day' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.day' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.day' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.seconds' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.ns' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.hour' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->timespec.tv_nsec' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'parse_datetime': events 1-2 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-57 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (57) use of uninitialized value '_15->rel.minutes' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.minutes' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-62 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (60) following 'true' branch (when 'yychar_193 == -2')... | | (59) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (61) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (62) calling 'yylex' from 'yyparse' | +--> 'yylex': event 63 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (63) entry to 'yylex' | 'yylex': events 64-65 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (64) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (65) ...to here | <------+ | 'yyparse': events 66-71 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (66) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (67) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (68) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (69) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (70) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (71) use of uninitialized value '_15->rel.minutes' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.day' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-62 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (60) following 'true' branch (when 'yychar_193 == -2')... | | (59) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (61) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (62) calling 'yylex' from 'yyparse' | +--> 'yylex': event 63 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (63) entry to 'yylex' | 'yylex': events 64-65 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (64) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (65) ...to here | <------+ | 'yyparse': events 66-71 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (66) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (67) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (68) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (69) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (70) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (71) use of uninitialized value '_15->rel.day' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.ns' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-62 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (60) following 'true' branch (when 'yychar_193 == -2')... | | (59) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (61) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (62) calling 'yylex' from 'yyparse' | +--> 'yylex': event 63 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (63) entry to 'yylex' | 'yylex': events 64-65 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (64) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (65) ...to here | <------+ | 'yyparse': events 66-71 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (66) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (67) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (68) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (69) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (70) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (71) use of uninitialized value '_15->rel.ns' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.hour' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-62 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (60) following 'true' branch (when 'yychar_193 == -2')... | | (59) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (61) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (62) calling 'yylex' from 'yyparse' | +--> 'yylex': event 63 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (63) entry to 'yylex' | 'yylex': events 64-65 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (64) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (65) ...to here | <------+ | 'yyparse': events 66-71 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (66) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (67) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (68) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (69) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (70) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (71) use of uninitialized value '_15->rel.hour' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-62 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (60) following 'true' branch (when 'yychar_193 == -2')... | | (59) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (61) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (62) calling 'yylex' from 'yyparse' | +--> 'yylex': event 63 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (63) entry to 'yylex' | 'yylex': events 64-65 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (64) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (65) ...to here | <------+ | 'yyparse': events 66-71 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (66) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (67) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (68) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (69) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (70) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (71) use of uninitialized value '_15->timespec.tv_nsec' here | gl/parse-datetime.c:1766:9: warning: use of uninitialized value '_15->rel.seconds' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1766 | yyval = yyvsp[1-yylen]; | ^ 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-62 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (60) following 'true' branch (when 'yychar_193 == -2')... | | (59) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (61) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (62) calling 'yylex' from 'yyparse' | +--> 'yylex': event 63 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (63) entry to 'yylex' | 'yylex': events 64-65 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (64) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (65) ...to here | <------+ | 'yyparse': events 66-71 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (66) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (67) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (68) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (69) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (70) ...to here |...... | 1766 | yyval = yyvsp[1-yylen]; | | ~ | | | | | (71) use of uninitialized value '_15->rel.seconds' here | gl/parse-datetime.y:610:21: warning: use of uninitialized value 'yyvsp_216->timespec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 610 | pc->seconds = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 4:' branch... | 1771 | { | 1772 | case 4: /* timespec: '@' seconds */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:610:21: | 610 | pc->seconds = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->timespec' here | gl/parse-datetime.y:610:21: warning: use of uninitialized value 'yyvsp_216->timespec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 4:' branch... | 1771 | { | 1772 | case 4: /* timespec: '@' seconds */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:610:21: | 610 | pc->seconds = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->timespec' here | gl/parse-datetime.y:610:21: warning: use of uninitialized value 'yyvsp_216->timespec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 4:' branch... | 1771 | { | 1772 | case 4: /* timespec: '@' seconds */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:610:21: | 610 | pc->seconds = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->timespec' here | gl/parse-datetime.y:610:21: warning: use of uninitialized value 'yyvsp_216->timespec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 4:' branch... | 1771 | { | 1772 | case 4: /* timespec: '@' seconds */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:610:21: | 610 | pc->seconds = $2; | | ^ | | | | | (64) use of uninitialized value 'yyvsp_216->timespec' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:677:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:677:9: | 677 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:678:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 678 | pc->meridian = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:678:33: | 678 | pc->meridian = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:678:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:678:33: | 678 | pc->meridian = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:678:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:678:33: | 678 | pc->meridian = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:678:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 18:' branch... |...... | 1860 | case 18: /* time: tUNUMBER tMERIDIAN */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:678:33: | 678 | pc->meridian = $2; | | ^ | | | | | (64) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:682:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:682:9: | 682 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:683:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 683 | pc->meridian = $4; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:683:33: | 683 | pc->meridian = $4; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:683:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:683:33: | 683 | pc->meridian = $4; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:683:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:683:33: | 683 | pc->meridian = $4; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:683:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 19:' branch... |...... | 1869 | case 19: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:683:33: | 683 | pc->meridian = $4; | | ^ | | | | | (64) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:687:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:687:9: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:687:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:687:134: | 687 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:688:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 688 | pc->meridian = $6; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:688:33: | 688 | pc->meridian = $6; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:688:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:688:33: | 688 | pc->meridian = $6; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:688:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:688:33: | 688 | pc->meridian = $6; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:688:33: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 20:' branch... |...... | 1878 | case 20: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:688:33: | 688 | pc->meridian = $6; | | ^ | | | | | (64) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:696:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 22:' branch... |...... | 1887 | case 22: /* iso_8601_time: tUNUMBER zone_offset */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:696:9: | 696 | set_hhmmss (pc, $1.value, 0, 0, 0); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:701:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 23:' branch... |...... | 1896 | case 23: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:701:9: | 701 | set_hhmmss (pc, $1.value, $3.value, 0, 0); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].textintval.value' here | gl/parse-datetime.y:706:9: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:706:9: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -280B].textintval.value' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:706:134: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 24:' branch... |...... | 1905 | case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:706:134: | 706 | set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (16) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (19) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (28) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (42) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (50) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (64) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:720:15: warning: use of uninitialized value '_65->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 27:' branch... |...... | 1914 | case 27: /* zone_offset: tSNUMBER o_colon_minutes */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:720:15: | 720 | if (! time_zone_hhmm (pc, $1, $2)) YYABORT; | | ^ | | | | | (64) use of uninitialized value '_65->textintval' here | gl/parse-datetime.y:743:36: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 743 | { pc->local_isdst = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 28:' branch... |...... | 1923 | case 28: /* local_zone: tLOCAL_ZONE */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:743:36: | 743 | { pc->local_isdst = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:743:36: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 28:' branch... |...... | 1923 | case 28: /* local_zone: tLOCAL_ZONE */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:743:36: | 743 | { pc->local_isdst = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:743:36: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 28:' branch... |...... | 1923 | case 28: /* local_zone: tLOCAL_ZONE */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:743:36: | 743 | { pc->local_isdst = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:743:36: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 28:' branch... |...... | 1923 | case 28: /* local_zone: tLOCAL_ZONE */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:743:36: | 743 | { pc->local_isdst = $1; } | | ^ | | | | | (64) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:755:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 755 | { pc->time_zone = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 30:' branch... |...... | 1938 | case 30: /* zone: tZONE */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:755:34: | 755 | { pc->time_zone = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:755:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 30:' branch... |...... | 1938 | case 30: /* zone: tZONE */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:755:34: | 755 | { pc->time_zone = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:755:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 30:' branch... |...... | 1938 | case 30: /* zone: tZONE */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:755:34: | 755 | { pc->time_zone = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:755:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 30:' branch... |...... | 1938 | case 30: /* zone: tZONE */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:755:34: | 755 | { pc->time_zone = $1; } | | ^ | | | | | (64) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 759 | { pc->time_zone = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:759:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:759:35: | 759 | { pc->time_zone = $1; | | ^ | | | | | (64) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:760:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:760:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:760:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:760:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 32:' branch... |...... | 1950 | case 32: /* zone: tZONE relunit_snumber */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:760:15: | 760 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (64) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:765:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 33:' branch... |...... | 1959 | case 33: /* zone: 'T' relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:765:15: | 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:765:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 33:' branch... |...... | 1959 | case 33: /* zone: 'T' relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:765:15: | 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:765:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 33:' branch... |...... | 1959 | case 33: /* zone: 'T' relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:765:15: | 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:765:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 33:' branch... |...... | 1959 | case 33: /* zone: 'T' relunit_snumber */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:765:15: | 765 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ^ | | | | | (64) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (16) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (19) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (28) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (42) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (50) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (64) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:769:15: warning: use of uninitialized value '_75->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-63 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (59) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (60) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (61) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (62) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (63) ...to here | 'yyparse': event 64 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (64) use of uninitialized value '_75->textintval' here | gl/parse-datetime.y:770:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | ^ 'yyparse': events 1-16 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (2) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (3) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (5) following 'false' branch (when 'yystate_206 != 12')... | | (4) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (6) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (7) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (9) following 'true' branch (when 'yychar_193 == -2')... | | (8) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (10) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (11) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (12) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (13) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (14) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (15) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (16) ...to here | 'yyparse': event 17 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (17) calling 'time_zone_hhmm' from 'yyparse' | +--> 'time_zone_hhmm': events 18-20 | | 1208 | time_zone_hhmm (parser_control *pc, textint s, intmax_t mm) | | ^ | | | | | (18) entry to 'time_zone_hhmm' |...... | 1228 | if (overflow || ! (-24 * 60 <= n_minutes && n_minutes <= 24 * 60)) | | ~ | | | | | (19) following 'false' branch... | 1229 | return false; | 1230 | pc->time_zone = n_minutes * 60; | | ~ | | | | | (20) ...to here | <------+ | 'yyparse': events 21-24 | | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ~ ^ | | | | | | | (21) returning to 'yyparse' from 'time_zone_hhmm' | | (22) following 'true' branch... | 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | | ~ ~ | | | | | | | (24) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | | (23) ...to here | gl/parse-datetime.y:770:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | ^ 'yyparse': events 1-28 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (2) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (3) following 'false' branch... | | (21) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (5) following 'false' branch (when 'yystate_206 != 12')... | | | (23) following 'false' branch (when 'yystate_206 != 12')... | | (4) ...to here | | (22) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (6) ...to here | | (24) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (7) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (9) following 'true' branch (when 'yychar_193 == -2')... | | (8) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (10) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (11) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (13) following 'true' branch (when 'yychar_194 == 256')... | | (12) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (25) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (26) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (27) following 'case 34:' branch... |...... | 1968 | case 34: /* zone: tZONE tSNUMBER o_colon_minutes */ | | ~ | | | | | (28) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (16) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (17) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (18) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (19) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (20) ...to here | 'yyparse': event 29 | |gl/parse-datetime.y:769:15: | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ^ | | | | | (29) calling 'time_zone_hhmm' from 'yyparse' | +--> 'time_zone_hhmm': events 30-32 | | 1208 | time_zone_hhmm (parser_control *pc, textint s, intmax_t mm) | | ^ | | | | | (30) entry to 'time_zone_hhmm' |...... | 1228 | if (overflow || ! (-24 * 60 <= n_minutes && n_minutes <= 24 * 60)) | | ~ | | | | | (31) following 'false' branch... | 1229 | return false; | 1230 | pc->time_zone = n_minutes * 60; | | ~ | | | | | (32) ...to here | <------+ | 'yyparse': events 33-36 | | 769 | { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; | | ~ ^ | | | | | | | (33) returning to 'yyparse' from 'time_zone_hhmm' | | (34) following 'true' branch... | 770 | if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | | ~ ~ | | | | | | | (36) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | | (35) ...to here | gl/parse-datetime.y:772:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 772 | { pc->time_zone = $1 + 60 * 60; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 35:' branch... |...... | 1975 | case 35: /* zone: tDAYZONE */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:772:34: | 772 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:772:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 35:' branch... |...... | 1975 | case 35: /* zone: tDAYZONE */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:772:34: | 772 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:772:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 35:' branch... |...... | 1975 | case 35: /* zone: tDAYZONE */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:772:34: | 772 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:772:34: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'get_crl_next_update': events 1-2 | |certtool-cfg.c:2656:8: | 2656 | time_t get_crl_next_update(void) | | ^ | | | | | (1) entry to 'get_crl_next_update' | 2657 | { | 2658 | return get_int_date(cfg.next_update_date, cfg.crl_next_update, "The next CRL will be issued in (days): "); | | ~ | | | | | (2) calling 'get_int_date' from 'get_crl_next_update' | +--> 'get_int_date': events 3-8 | | 1764 | time_t get_int_date(const char *txt_val, int int_val, const char *msg) | | ^ | | | | | (3) entry to 'get_int_date' | 1765 | { | 1766 | if (batch) { | | ~ | | | | | (4) following 'true' branch... | 1767 | if (txt_val == NULL) { | | ~ ~ | | | | | | | (6) following 'false' branch (when 'txt_val_13(D)' is non-NULL)... | | (5) ...to here |...... | 1778 | return get_date(txt_val); | | ~ ~ | | | | | | | (8) calling 'get_date' from 'get_int_date' | | (7) ...to here | +--> 'get_date': events 9-12 | | 1691 | time_t get_date(const char* date) | | ^ | | | | | (9) entry to 'get_date' |...... | 1695 | if (date==NULL || parse_datetime(&r, date, NULL) == 0) { | | ~ ~ | | | | | | | (11) ...to here | | | (12) calling 'parse_datetime' from 'get_date' | | (10) following 'false' branch (when 'date_3(D)' is non-NULL)... | +--> 'parse_datetime': events 13-14 | |gl/parse-datetime.y:2394:1: | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (13) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (14) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 15 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (15) entry to 'tzalloc' | 'tzalloc': events 16-19 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (16) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (17) ...to here |...... | 79 | if (name) | | ~ | | | | | (18) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (19) ...to here | <------+ | 'parse_datetime': events 20-23 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (20) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (21) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (23) calling 'parse_datetime_body' from 'parse_datetime' | | (22) ...to here | +--> 'parse_datetime_body': events 24-27 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (24) entry to 'parse_datetime_body' |...... | 1729 | if (! now) | | ~ | | | | | (25) following 'true' branch (when 'now_201(D)' is NULL)... | 1730 | { | 1731 | gettime (&gettime_buffer); | | ~ | | | | | (26) ...to here |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (27) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 28 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (28) entry to 'localtime_rz' | 'localtime_rz': events 29-31 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (29) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (30) ...to here (31) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 32-33 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (32) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (33) following 'true' branch... | 'set_tz': event 34 | |lto1: | (34): ...to here | <------+ | 'localtime_rz': events 35-42 | | 236 | if (tz == local_tz) | | ~ | | | | | (40) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (35) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (36) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (39) ...to here (38) following 'true' branch... | | (37) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (41) ...to here (42) following 'true' branch... | 'localtime_rz': event 43 | |lto1: | (43): ...to here | <------+ | 'parse_datetime_body': events 44-51 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (44) returning to 'parse_datetime_body' from 'localtime_rz' | | (45) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (46) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (47) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (48) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (49) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (50) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (51) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 52-62 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (52) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (53) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (54) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (56) following 'false' branch (when 'yystate_206 != 12')... | | (55) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (57) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (58) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (60) following 'true' branch (when 'yychar_193 == -2')... | | (59) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (61) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (62) calling 'yylex' from 'yyparse' | +--> 'yylex': event 63 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (63) entry to 'yylex' | 'yylex': events 64-65 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (64) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (65) ...to here | <------+ | 'yyparse': events 66-72 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (66) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (67) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (68) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (69) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (70) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (71) following 'case 35:' branch... |...... | 1975 | case 35: /* zone: tDAYZONE */ | | ~ | | | | | (72) ...to here | 'yyparse': event 73 | |gl/parse-datetime.y:772:34: | 772 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (73) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 774 | { pc->time_zone = $1 + 60 * 60; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:774:35: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 36:' branch... |...... | 1981 | case 36: /* zone: tZONE tDST */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:774:35: | 774 | { pc->time_zone = $1 + 60 * 60; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:781:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 781 | pc->day_number = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 37:' branch... |...... | 1987 | case 37: /* day: tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:781:35: | 781 | pc->day_number = $1; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:781:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 37:' branch... |...... | 1987 | case 37: /* day: tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:781:35: | 781 | pc->day_number = $1; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:781:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 37:' branch... |...... | 1987 | case 37: /* day: tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:781:35: | 781 | pc->day_number = $1; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 786 | pc->day_number = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:786:36: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 38:' branch... |...... | 1996 | case 38: /* day: tDAY ',' */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:786:36: | 786 | pc->day_number = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 790 | pc->day_ordinal = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:790:37: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:790:37: | 790 | pc->day_ordinal = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:791:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 791 | pc->day_number = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:791:35: | 791 | pc->day_number = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:791:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:791:35: | 791 | pc->day_number = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:791:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 39:' branch... |...... | 2005 | case 39: /* day: tORDINAL tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:791:35: | 791 | pc->day_number = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 796 | pc->day_ordinal = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:796:49: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:796:49: | 796 | pc->day_ordinal = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:797:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 797 | pc->day_number = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:797:35: | 797 | pc->day_number = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:797:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:797:35: | 797 | pc->day_number = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:797:35: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 40:' branch... |...... | 2015 | case 40: /* day: tUNUMBER tDAY */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:797:35: | 797 | pc->day_number = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 805 | pc->month = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:805:43: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:805:43: | 805 | pc->month = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 806 | pc->day = $3.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:806:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 41:' branch... |...... | 2025 | case 41: /* date: tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:806:40: | 806 | pc->day = $3.value; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 815 | if (4 <= $1.digits) | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:815:40: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:815:40: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.digits' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:825:22: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 825 | pc->year = $1; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 825 | pc->year = $1; | | ~ | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:826:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 826 | pc->month = $3.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 826 | pc->month = $3.value; | | | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (18) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (21) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (30) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:827:44: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 827 | pc->day = $5.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'true' branch... | 816 | { | 817 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 827 | pc->day = $5.value; | | | | | | | (52) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:836:47: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 836 | pc->month = $1.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 836 | pc->month = $1.value; | | | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -224B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (18) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (21) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (28) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (29) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (30) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': events 42-44 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (42) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (43) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (44) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:837:45: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 837 | pc->day = $3.value; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 837 | pc->day = $3.value; | | | | | | | (52) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:838:22: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 838 | pc->year = $5; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (16) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (17) ...to here |...... | 838 | pc->year = $5; | | ~ | | | | | (18) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:838:22: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 838 | pc->year = $5; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (19) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (20) ...to here |...... | 838 | pc->year = $5; | | ~ | | | | | (21) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:838:22: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 838 | pc->year = $5; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 42:' branch... |...... | 2034 | case 42: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': events 50-52 | |gl/parse-datetime.y:815:12: | 815 | if (4 <= $1.digits) | | ^ | | | | | (50) following 'false' branch... |...... | 831 | if (debugging (pc)) | | ~ | | | | | (51) ...to here |...... | 838 | pc->year = $5; | | ~ | | | | | (52) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 844 | pc->day = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:844:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:844:41: | 844 | pc->day = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 845 | pc->month = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:845:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:845:31: | 845 | pc->month = $2; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:846:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:846:13: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (17) ...to here (18) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (20) ...to here (21) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (29) ...to here (30) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:847:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 847 | pc->year.digits = $3.digits; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 43:' branch... |...... | 2071 | case 43: /* date: tUNUMBER tMONTH tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-50 | |gl/parse-datetime.y:846:12: | 846 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 847 | pc->year.digits = $3.digits; | | ~ | | | | | | (49) ...to here (50) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 852 | pc->month = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:852:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:852:31: | 852 | pc->month = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].intval' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:853:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:853:13: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (18) use of uninitialized value 'yyvsp_216->textintval.value' here | | (17) ...to here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (21) use of uninitialized value 'yyvsp_216->textintval.value' here | | (20) ...to here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (30) use of uninitialized value 'yyvsp_216->textintval.value' here | | (29) ...to here | gl/parse-datetime.y:854:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-50 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | | (49) ...to here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-20 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (18) following 'false' branch... | | (17) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (19) ...to here (20) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-23 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (21) following 'false' branch... | | (20) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (22) ...to here (23) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-32 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (30) following 'false' branch... | | (29) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (31) ...to here (32) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:855:48: warning: use of uninitialized value 'yyvsp_216->textintval.digits' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 855 | pc->year.digits = $3.digits; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 44:' branch... |...... | 2083 | case 44: /* date: tMONTH tSNUMBER tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-52 | |gl/parse-datetime.y:853:12: | 853 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 854 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; | | ~ ~ | | | | | | | (50) following 'false' branch... | | (49) ...to here | 855 | pc->year.digits = $3.digits; | | ~ | | | | | | (51) ...to here (52) use of uninitialized value 'yyvsp_216->textintval.digits' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 859 | pc->month = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:859:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:859:31: | 859 | pc->month = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 860 | pc->day = $2.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:860:40: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 45:' branch... |...... | 2095 | case 45: /* date: tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:860:40: | 860 | pc->day = $2.value; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 864 | pc->month = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:864:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:864:31: | 864 | pc->month = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -168B].intval' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 865 | pc->day = $2.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:865:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:865:41: | 865 | pc->day = $2.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:866:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 866 | pc->year = $4; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:866:18: | 866 | pc->year = $4; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:866:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:866:18: | 866 | pc->year = $4; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:866:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 46:' branch... |...... | 2104 | case 46: /* date: tMONTH tUNUMBER ',' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:866:18: | 866 | pc->year = $4; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 870 | pc->day = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:870:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:870:41: | 870 | pc->day = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:871:30: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 871 | pc->month = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:871:30: | 871 | pc->month = $2; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:871:30: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:871:30: | 871 | pc->month = $2; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:871:30: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 47:' branch... |...... | 2114 | case 47: /* date: tUNUMBER tMONTH */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:871:30: | 871 | pc->month = $2; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 875 | pc->day = $1.value; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:875:41: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:875:41: | 875 | pc->day = $1.value; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval.value' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 876 | pc->month = $2; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:876:31: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:876:31: | 876 | pc->month = $2; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:877:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 877 | pc->year = $3; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:877:18: | 877 | pc->year = $3; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:877:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:877:18: | 877 | pc->year = $3; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:877:18: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 48:' branch... |...... | 2123 | case 48: /* date: tUNUMBER tMONTH tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:877:18: | 877 | pc->year = $3; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 886 | pc->year = $1; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:886:18: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:886:18: | 886 | pc->year = $1; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -112B].textintval' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:887:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:887:13: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': events 16-18 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (16) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (18) use of uninitialized value 'yyvsp_216->textintval.value' here | | (17) ...to here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': events 19-21 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (19) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (21) use of uninitialized value 'yyvsp_216->textintval.value' here | | (20) ...to here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': events 28-30 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (28) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (30) use of uninitialized value 'yyvsp_216->textintval.value' here | | (29) ...to here | gl/parse-datetime.y:888:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-47 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (44) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (45) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (46) following 'case 50:' branch... |...... | 2133 | case 50: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ | | ~ | | | | | (47) ...to here | 'yyparse': events 48-50 | |gl/parse-datetime.y:887:12: | 887 | if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; | | ^ | | | | | (48) following 'false' branch... | 888 | if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; | | ~ ~ | | | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | | (49) ...to here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:15: warning: use of uninitialized value '_134->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:894:15: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value '_134->rel' here | gl/parse-datetime.y:894:66: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:894:66: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:894:66: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:894:66: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:894:66: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 51:' branch... |...... | 2144 | case 51: /* rel: relunit tAGO */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:894:66: | 894 | { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:896:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 52:' branch... |...... | 2150 | case 52: /* rel: relunit */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:896:15: | 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:896:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 52:' branch... |...... | 2150 | case 52: /* rel: relunit */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:896:15: | 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:896:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 52:' branch... |...... | 2150 | case 52: /* rel: relunit */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:896:15: | 896 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:898:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 53:' branch... |...... | 2156 | case 53: /* rel: dayshift */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:898:15: | 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:898:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 53:' branch... |...... | 2156 | case 53: /* rel: dayshift */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:898:15: | 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:898:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 53:' branch... |...... | 2156 | case 53: /* rel: dayshift */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:898:15: | 898 | { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:903:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 54:' branch... |...... | 2162 | case 54: /* relunit: tORDINAL tYEAR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:903:69: | 903 | { $$ = RELATIVE_TIME_0; $$.year = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:905:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 55:' branch... |...... | 2168 | case 55: /* relunit: tUNUMBER tYEAR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:905:81: | 905 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:909:70: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 57:' branch... |...... | 2180 | case 57: /* relunit: tORDINAL tMONTH_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:909:70: | 909 | { $$ = RELATIVE_TIME_0; $$.month = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:911:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 58:' branch... |...... | 2186 | case 58: /* relunit: tUNUMBER tMONTH_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:911:82: | 911 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:916:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 60:' branch... |...... | 2198 | case 60: /* relunit: tORDINAL tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:916:13: | 916 | if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:919:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 61:' branch... |...... | 2205 | case 61: /* relunit: tUNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:919:13: | 919 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:921:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 62:' branch... |...... | 2212 | case 62: /* relunit: tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:921:67: | 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:921:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 62:' branch... |...... | 2212 | case 62: /* relunit: tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:921:67: | 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:921:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 62:' branch... |...... | 2212 | case 62: /* relunit: tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:921:67: | 921 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:923:69: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 63:' branch... |...... | 2218 | case 63: /* relunit: tORDINAL tHOUR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:923:69: | 923 | { $$ = RELATIVE_TIME_0; $$.hour = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:925:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 64:' branch... |...... | 2224 | case 64: /* relunit: tUNUMBER tHOUR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:925:81: | 925 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:929:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 66:' branch... |...... | 2236 | case 66: /* relunit: tORDINAL tMINUTE_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:929:72: | 929 | { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:931:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 67:' branch... |...... | 2242 | case 67: /* relunit: tUNUMBER tMINUTE_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:931:84: | 931 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:935:72: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 69:' branch... |...... | 2254 | case 69: /* relunit: tORDINAL tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:935:72: | 935 | { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].intval' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:937:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 70:' branch... |...... | 2260 | case 70: /* relunit: tUNUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:937:84: | 937 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:939:82: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:939:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 71:' branch... |...... | 2266 | case 71: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:939:128: | 939 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:941:82: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_sec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:941:128: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 72:' branch... |...... | 2272 | case 72: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:941:128: | 941 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].timespec.tv_nsec' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:949:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 75:' branch... |...... | 2284 | case 75: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:949:81: | 949 | { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:951:82: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 76:' branch... |...... | 2290 | case 76: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:951:82: | 951 | { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:954:13: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 77:' branch... |...... | 2296 | case 77: /* relunit_snumber: tSNUMBER tDAY_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:954:13: | 954 | if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:956:81: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 78:' branch... |...... | 2303 | case 78: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:956:81: | 956 | { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:958:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 79:' branch... |...... | 2309 | case 79: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:958:84: | 958 | { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (16) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (19) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (28) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (42) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:960:84: warning: use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 80:' branch... |...... | 2315 | case 80: /* relunit_snumber: tSNUMBER tSEC_UNIT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:960:84: | 960 | { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | | ^ | | | | | (50) use of uninitialized value 'MEM[(union YYSTYPE *)yyvsp_216 + -56B].textintval.value' here | gl/parse-datetime.y:965:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 81:' branch... |...... | 2321 | case 81: /* dayshift: tDAY_SHIFT */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:965:67: | 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:965:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 81:' branch... |...... | 2321 | case 81: /* dayshift: tDAY_SHIFT */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:965:67: | 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:965:67: warning: use of uninitialized value 'yyvsp_216->intval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 81:' branch... |...... | 2321 | case 81: /* dayshift: tDAY_SHIFT */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:965:67: | 965 | { $$ = RELATIVE_TIME_0; $$.day = $1; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->intval' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 973 | { if (time_overflow ($1.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:973:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 85:' branch... |...... | 2327 | case 85: /* signed_seconds: tSNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:973:13: | 973 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 980 | { if (time_overflow ($1.value)) YYABORT; | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:980:13: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 87:' branch... |...... | 2334 | case 87: /* unsigned_seconds: tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:980:13: | 980 | { if (time_overflow ($1.value)) YYABORT; | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:986:9: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 986 | { digits_to_date_time (pc, $1); } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:986:9: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:986:9: warning: use of uninitialized value 'yyvsp_216->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 88:' branch... |...... | 2341 | case 88: /* number: tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:986:9: | 986 | { digits_to_date_time (pc, $1); } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 994 | digits_to_date_time (pc, $1); | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (16) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (19) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (28) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-19 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (15) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (17) following 'true' branch (when 'yychar_193 == -2')... | | (16) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (18) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (19) calling 'yylex' from 'yyparse' | +--> 'yylex': event 20 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (20) entry to 'yylex' | 'yylex': events 21-22 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (21) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (22) ...to here | <------+ | 'yyparse': events 23-41 | |gl/parse-datetime.c:1685:16: | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (34) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (36) following 'false' branch (when 'yystate_206 != 12')... | | (35) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (37) ...to here |...... | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (23) returning to 'yyparse' from 'yylex' |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (24) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (26) following 'true' branch (when 'yychar_194 == 256')... | | (25) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (27) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (38) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (39) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (40) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (41) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (28) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (29) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (30) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (31) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (32) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (33) ...to here | 'yyparse': event 42 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (42) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:994:9: warning: use of uninitialized value '_175->textintval' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (50) use of uninitialized value '_175->textintval' here | gl/parse-datetime.y:995:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'yyparse': events 1-16 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (1) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (2) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (3) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (5) following 'false' branch (when 'yystate_206 != 12')... | | (4) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (6) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (7) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (9) following 'true' branch (when 'yychar_193 == -2')... | | (8) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (10) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (11) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (12) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (13) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (14) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (15) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (16) ...to here | 'yyparse': event 17 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (17) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 18-20 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ | | | | | (18) entry to 'digits_to_date_time' |...... | 273 | if (4 < text_int.digits) | | ~ | | | | | (19) following 'true' branch (when 'text_int$digits_35 > 4')... | 274 | { | 275 | pc->dates_seen++; | | ~ | | | | | (20) ...to here | <------+ | 'yyparse': events 21-22 | | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (21) returning to 'yyparse' from 'digits_to_date_time' | 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ~ | | | | | (22) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:995:15: warning: use of uninitialized value 'yyvsp_216->rel' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | ^ 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-48 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (46) following 'true' branch (when 'yychar_193 == -2')... | | (45) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (47) ...to here | 1685 | yychar = yylex (&yylval, pc); | | ~ | | | | | (48) calling 'yylex' from 'yyparse' | +--> 'yylex': event 49 | |gl/parse-datetime.y:1414:1: | 1414 | yylex (union YYSTYPE *lvalp, parser_control *pc) | | ^ | | | | | (49) entry to 'yylex' | 'yylex': events 50-51 | |gl/./c-ctype.h:185:3: | 185 | switch (c) | | ^ | | | | | (50) following 'default:' branch... |...... | 191 | return false; | | ~ | | | | | (51) ...to here | <------+ | 'yyparse': events 52-58 | |gl/parse-datetime.c:1685:16: | 1685 | yychar = yylex (&yylval, pc); | | ^ | | | | | (52) returning to 'yyparse' from 'yylex' |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (53) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (54) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (55) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (56) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (57) following 'case 89:' branch... |...... | 2347 | case 89: /* hybrid: tUNUMBER relunit_snumber */ | | ~ | | | | | (58) ...to here | 'yyparse': event 59 | |gl/parse-datetime.y:994:9: | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (59) calling 'digits_to_date_time' from 'yyparse' | +--> 'digits_to_date_time': events 60-64 | | 263 | digits_to_date_time (parser_control *pc, textint text_int) | | ^ | | | | | (60) entry to 'digits_to_date_time' | 264 | { | 265 | if (pc->dates_seen && ! pc->year.digits | | ~ | | | | | (61) following 'false' branch... |...... | 273 | if (4 < text_int.digits) | | ~ ~ | | | | | | | (63) following 'true' branch (when 'text_int$digits_35 > 4')... | | (62) ...to here | 274 | { | 275 | pc->dates_seen++; | | ~ | | | | | (64) ...to here | <------+ | 'yyparse': events 65-66 | | 994 | digits_to_date_time (pc, $1); | | ^ | | | | | (65) returning to 'yyparse' from 'digits_to_date_time' | 995 | if (! apply_relative_time (pc, $2, 1)) YYABORT; | | ~ | | | | | (66) use of uninitialized value 'yyvsp_216->rel' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 1003 | { $$ = $2.value; } | ^ 'yyparse': events 1-15 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1713 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) | | ~ | | | | | (10) following 'false' branch... | 1714 | goto yydefault; | 1715 | yyn = yytable[yyn]; | | ~ | | | | | (11) ...to here | 1716 | if (yyn <= 0) | | ~ | | | | | (12) following 'true' branch (when 'yyn_242 <= 0')... | 1717 | { | 1718 | if (yytable_value_is_error (yyn)) | | ~ | | | | | (13) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (14) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (15) ...to here | 'yyparse': event 16 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (16) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime_body': events 1-8 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (2) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (3) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (4) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (5) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (6) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (7) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (8) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 9-18 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (9) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (10) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (11) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (13) following 'false' branch (when 'yystate_206 != 12')... | | (12) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (14) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (15) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (16) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (17) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (18) ...to here | 'yyparse': event 19 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (19) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'yyparse': events 1-27 | |gl/parse-datetime.c:1551:13: | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ^ | | | | | (1) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (2) following 'false' branch... | | (20) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (4) following 'false' branch (when 'yystate_206 != 12')... | | | (22) following 'false' branch (when 'yystate_206 != 12')... | | (3) ...to here | | (21) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (5) ...to here | | (23) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (6) following 'false' branch (when 'yyn_237 != -93')... |...... | 1682 | if (yychar == YYEMPTY) | | ~ ~ | | | | | | | (8) following 'true' branch (when 'yychar_193 == -2')... | | (7) ...to here | 1683 | { | 1684 | YYDPRINTF ((stderr, "Reading a token\n")); | | ~ | | | | | (9) ...to here |...... | 1688 | if (yychar <= YYEOF) | | ~ | | | | | (10) following 'false' branch (when 'yychar_194 > 0')... |...... | 1694 | else if (yychar == YYerror) | | ~ ~ | | | | | | | (12) following 'true' branch (when 'yychar_194 == 256')... | | (11) ...to here |...... | 1700 | yychar = YYUNDEF; | | ~ | | | | | (13) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (24) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (25) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (26) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (27) ...to here |...... | 2473 | if (!yypact_value_is_default (yyn)) | | ~ | | | | | (14) following 'true' branch (when 'yyn_388 != -93')... | 2474 | { | 2475 | yyn += YYSYMBOL_YYerror; | | ~ | | | | | (15) ...to here | 2476 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) | | ~ | | | | | (16) following 'true' branch... | 2477 | { | 2478 | yyn = yytable[yyn]; | | ~ | | | | | (17) ...to here | 2479 | if (0 < yyn) | | ~ | | | | | (18) following 'true' branch (when 'yyn_390 > 0')... |...... | 2497 | *++yyvsp = yylval; | | ~ | | | | | (19) ...to here | 'yyparse': event 28 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (28) use of uninitialized value 'yyvsp_216->textintval.value' here | gl/parse-datetime.y:1003:47: warning: use of uninitialized value 'yyvsp_216->textintval.value' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 'parse_datetime': events 1-2 | | 2394 | parse_datetime (struct timespec *result, char const *p, | | ^ | | | | | (1) entry to 'parse_datetime' |...... | 2398 | timezone_t tz = tzalloc (tzstring); | | ~ | | | | | (2) calling 'tzalloc' from 'parse_datetime' | +--> 'tzalloc': event 3 | |gl/./time.h:866:1: | 866 | _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); | | ^ | | | | | (3) entry to 'tzalloc' | 'tzalloc': events 4-7 | |gl/time_rz.c:71:6: | 71 | if (tz) | | ^ | | | | | (4) following 'true' branch (when 'tz_14' is non-NULL)... | 72 | { | 73 | tz->next = NULL; | | ~ | | | | | (5) ...to here |...... | 79 | if (name) | | ~ | | | | | (6) following 'false' branch (when 'name_10(D)' is NULL)... | 80 | extend_abbrs (tz->abbrs, name, name_size); | | ~ | | | | | (7) ...to here | <------+ | 'parse_datetime': events 8-11 | |gl/parse-datetime.y:2398:19: | 2398 | timezone_t tz = tzalloc (tzstring); | | ^ | | | | | (8) returning to 'parse_datetime' from 'tzalloc' | 2399 | if (!tz) | | ~ | | | | | (9) following 'false' branch... | 2400 | return false; | 2401 | bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); | | ~ ~ | | | | | | | (11) calling 'parse_datetime_body' from 'parse_datetime' | | (10) ...to here | +--> 'parse_datetime_body': events 12-13 | | 1711 | parse_datetime_body (struct timespec *result, char const *p, | | ^ | | | | | (12) entry to 'parse_datetime_body' |...... | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ | | | | | (13) calling 'localtime_rz' from 'parse_datetime_body' | +--> 'localtime_rz': event 14 | |gl/./time.h:880:1: | 880 | _GL_FUNCDECL_SYS (localtime_rz, struct tm *, | | ^ | | | | | (14) entry to 'localtime_rz' | 'localtime_rz': events 15-17 | |gl/time_rz.c:269:6: | 269 | if (!tz) | | ^ | | | | | (15) following 'false' branch (when 'tz_7(D)' is non-NULL)... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ~ ~ | | | | | | (16) ...to here (17) calling 'set_tz' from 'localtime_rz' | +--> 'set_tz': events 18-19 | | 207 | set_tz (timezone_t tz) | | ^ | | | | | (18) entry to 'set_tz' |...... | 210 | if (env_tz | | ~ | | | | | (19) following 'true' branch... | 'set_tz': event 20 | |lto1: | (20): ...to here | <------+ | 'localtime_rz': events 21-28 | | 236 | if (tz == local_tz) | | ~ | | | | | (26) following 'true' branch... |...... | 273 | timezone_t old_tz = set_tz (tz); | | ^ | | | | | (21) returning to 'localtime_rz' from 'set_tz' | 274 | if (old_tz) | | ~ | | | | | (22) following 'true' branch... | 275 | { | 276 | bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); | | ~ ~ ~ | | | | | | | | (25) ...to here (24) following 'true' branch... | | (23) ...to here | 277 | if (revert_tz (old_tz) && abbr_saved) | | ~ ~ | | | | | | (27) ...to here (28) following 'true' branch... | 'localtime_rz': event 29 | |lto1: | (29): ...to here | <------+ | 'parse_datetime_body': events 30-37 | |gl/parse-datetime.y:1793:9: | 1793 | if (! localtime_rz (tz, &now->tv_sec, &tmp)) | | ~ ^ | | | | | | | (30) returning to 'parse_datetime_body' from 'localtime_rz' | | (31) following 'false' branch... |...... | 1799 | if (*p == '\0') | | ~ | | | | | (32) ...to here |...... | 1807 | if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) | | ~ | | | | | (33) following 'false' branch... |...... | 1813 | pc.year.digits = 0; | | ~ | | | | | (34) ...to here |...... | 1851 | for (quarter = 1; quarter <= 3; quarter++) | | ~ | | | | | (35) following 'true' branch (when 'quarter_166 != 4')... | 1852 | { | 1853 | time_t probe; | | ~ | | | | | (36) ...to here |...... | 1901 | if (yyparse (&pc) != 0) | | ~ | | | | | (37) calling 'yyparse' from 'parse_datetime_body' | +--> 'yyparse': events 38-49 | |gl/parse-datetime.c:1520:1: | 1520 | yyparse (parser_control *pc) | | ^ | | | | | (38) entry to 'yyparse' |...... | 1551 | YYSTYPE yyvsa[YYINITDEPTH]; | | ~ | | | | | (39) region created on stack here |...... | 1598 | if (yyss + yystacksize - 1 <= yyssp) | | ~ | | | | | (40) following 'false' branch... |...... | 1661 | if (yystate == YYFINAL) | | ~ ~ | | | | | | | (42) following 'false' branch (when 'yystate_206 != 12')... | | (41) ...to here |...... | 1664 | goto yybackup; | | ~ | | | | | (43) ...to here |...... | 1676 | if (yypact_value_is_default (yyn)) | | ~ | | | | | (44) following 'true' branch (when 'yyn_237 == -93')... | 1677 | goto yydefault; | | ~ | | | | | (45) ...to here |...... | 1746 | if (yyn == 0) | | ~ | | | | | (46) following 'false' branch (when 'yyn_247 != 0')... | 1747 | goto yyerrlab; | 1748 | goto yyreduce; | | ~ | | | | | (47) ...to here |...... | 1770 | switch (yyn) | | ~ | | | | | (48) following 'case 91:' branch... |...... | 2364 | case 91: /* o_colon_minutes: ':' tUNUMBER */ | | ~ | | | | | (49) ...to here | 'yyparse': event 50 | |gl/parse-datetime.y:1003:47: | 1003 | { $$ = $2.value; } | | ^ | | | | | (50) use of uninitialized value 'yyvsp_216->textintval.value' here | make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src' Making all in tests make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/tests' Making all in . make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/tests' CC datefudge-check.o CC seccomp.lo CC utils.lo CC utils-adv.lo CC pkcs11/pkcs11-mock2.lo CC pkcs11/pkcs11-mock.lo utils.c: In function '_fail': utils.c:97:9: warning: ignoring return value of 'vasprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 97 | vasprintf(&str, format, arg_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CCLD libpkcs11mock2.la CCLD libutils.la CCLD libpkcs11mock1.la ar: `u' modifier ignored since `D' is the default (see `U') CCLD datefudge-check make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/tests' Making all in cert-tests make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/tests/cert-tests' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/tests/cert-tests' Making all in slow make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/tests/slow' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/tests/slow' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/tests' Making all in fuzz make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/fuzz' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/fuzz' Making all in guile make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/guile' Making all in src make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/guile/src' GEN enum-map.i.c GEN enums.h GEN smob-types.i.c GEN smobs.h GEN core.x GEN errors.x make all-am make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/guile/src' CC guile_gnutls_v_2_la-core.lo CC guile_gnutls_v_2_la-errors.lo CC guile_gnutls_v_2_la-utils.lo CCLD guile-gnutls-v-2.la make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/guile/src' make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/guile/src' make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/guile' GEN modules/gnutls.scm GUILEC modules/gnutls.go GUILEC modules/gnutls/extra.go ;;; note: source file ../guile/modules/gnutls.scm ;;; newer than compiled /usr/lib/guile/2.2/site-ccache/gnutls.go Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/guile' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/guile' Making all in doc/manpages make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc/manpages' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc/manpages' Making all in doc make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc' make all-recursive make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc' Making all in examples make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc/examples' CC ex-pkcs12.lo CC ex-client-resume.o CC ex-x509-info.lo CC ex-session-info.lo CC ex-verify-ssh.lo CC ex-verify.lo CC ex-alert.lo CC verify.lo CC ex-client-x509-3.1.lo CC tcp.lo CC ex-client-x509.o CC udp.lo CC ex-pkcs11-list.lo CC ex-client-dtls.o CC ex-cert-select.o CC ex-serv-dtls.o CC print-ciphersuites.o CC ex-serv-x509.o CXX ex-cxx.o CC ex-client-anon.o CC ex-serv-anon.o CC ex-cert-select-pkcs11.o CC ex-client-psk.o CC ex-serv-psk.o CC ex-client-srp.o CC ex-serv-srp.o CC ex-ocsp-client.o CC tlsproxy/crypto-gnutls.o CC tlsproxy/buffer.o CC tlsproxy/tlsproxy.o CCLD libexamples.la ar: `u' modifier ignored since `D' is the default (see `U') CCLD ex-serv-psk CCLD ex-client-dtls CCLD ex-serv-srp CCLD ex-cert-select CCLD ex-serv-dtls CCLD ex-cert-select-pkcs11 CCLD ex-client-x509 CCLD ex-client-srp CCLD ex-client-resume CCLD ex-client-anon CCLD ex-client-psk CCLD print-ciphersuites CCLD ex-serv-x509 CCLD tlsproxy/tlsproxy CCLD ex-serv-anon CCLD ex-ocsp-client CXXLD ex-cxx ex-ocsp-client.c: In function 'load_cert': ex-ocsp-client.c:191:19: warning: use of uninitialized value 'size' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 191 | data.size = size; | ^ 'main': events 1-6 | | 37 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 57 | if (argc > 4) | | ~ | | | | | (2) following 'true' branch (when 'argc_32(D) > 4')... | 58 | hostname = argv[4]; | | ~ | | | | | (3) ...to here |...... | 61 | if (ret < 0) | | ~ | | | | | (4) following 'false' branch... |...... | 64 | cert = load_cert(cert_file); | | ~ ~ | | | | | | | (6) calling 'load_cert' from 'main' | | (5) ...to here | +--> 'load_cert': events 7-11 | | 179 | static gnutls_x509_crt_t load_cert(const char *cert_file) | | ^ | | | | | (7) entry to 'load_cert' |...... | 184 | size_t size; | | ~ | | | | | (8) region created on stack here |...... | 187 | if (ret < 0) | | ~ | | | | | (9) following 'false' branch... |...... | 190 | data.data = (void *) read_file(cert_file, RF_BINARY, &size); | | ~ ~ | | | | | | (10) ...to here (11) calling '_gnutls_read_file' from 'load_cert' | +--> '_gnutls_read_file': events 12-14 | |../../gl/read-file.c:190:1: | 190 | read_file (const char *filename, int flags, size_t *length) | | ^ | | | | | (12) entry to '_gnutls_read_file' | 191 | { | 192 | const char *mode = (flags & RF_BINARY) ? "rbe" : "re"; | | ~ ~ | | | | | | (14) ...to here (13) following 'true' branch... | <------+ | 'load_cert': events 15-16 | |ex-ocsp-client.c:190:30: | 190 | data.data = (void *) read_file(cert_file, RF_BINARY, &size); | | ^ | | | | | (15) returning to 'load_cert' from '_gnutls_read_file' | 191 | data.size = size; | | ~ | | | | | (16) use of uninitialized value 'size' here | ex-ocsp-client.c: In function 'load_cert': ex-ocsp-client.c:191:19: warning: 'size' may be used uninitialized [-Wmaybe-uninitialized] 191 | data.size = size; | ^ ex-ocsp-client.c:184:16: note: 'size' was declared here 184 | size_t size; | ^ make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc/examples' Making all in scripts make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc/scripts' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc/scripts' Making all in credentials make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc/credentials' Making all in srp make[5]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc/credentials/srp' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc/credentials/srp' Making all in x509 make[5]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc/credentials/x509' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc/credentials/x509' make[5]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc/credentials' make[5]: Nothing to be done for 'all-am'. make[5]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc/credentials' make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc/credentials' Making all in latex make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc/latex' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc/latex' make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/doc' make[4]: Nothing to be done for 'all-am'. make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc' make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/doc' make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8' make[1]: Leaving directory '/build/gnutls/src/gnutls-3.7.8' ==> Starting check()... Making check in gl make[1]: Entering directory '/build/gnutls/src/gnutls-3.7.8/gl' make check-recursive make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/gl' make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/gl' make[3]: Nothing to be done for 'check-am'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/gl' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/gl' make[1]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/gl' Making check in lib make[1]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib' make check-recursive make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib' Making check in includes make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/includes' make[3]: Nothing to be done for 'check'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/includes' Making check in x509 make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/x509' make check-am make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/x509' make[4]: Nothing to be done for 'check-am'. make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/x509' make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/x509' Making check in auth make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/auth' make[3]: Nothing to be done for 'check'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/auth' Making check in ext make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/ext' make[3]: Nothing to be done for 'check'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/ext' Making check in algorithms make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/algorithms' make[3]: Nothing to be done for 'check'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/algorithms' Making check in extras make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/extras' make[3]: Nothing to be done for 'check'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/extras' Making check in accelerated make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/accelerated' make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/accelerated' make[4]: Nothing to be done for 'check-am'. make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/accelerated' make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/accelerated' Making check in nettle make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib/nettle' make[3]: Nothing to be done for 'check'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib/nettle' make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/lib' make[3]: Nothing to be done for 'check-am'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib' make[1]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/lib' Making check in extra make[1]: Entering directory '/build/gnutls/src/gnutls-3.7.8/extra' Making check in includes make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/extra/includes' make[2]: Nothing to be done for 'check'. make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/extra/includes' make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/extra' make[2]: Nothing to be done for 'check-am'. make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/extra' make[1]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/extra' Making check in po make[1]: Entering directory '/build/gnutls/src/gnutls-3.7.8/po' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/po' Making check in src/gl make[1]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl' make check-recursive make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl' Making check in . make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl' make[3]: Nothing to be done for 'check-am'. make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl' Making check in tests make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make check-recursive make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' Making check in . make[5]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make test-accept test-alloca-opt test-arpa_inet test-array_list test-binary-io test-bind test-bitrotate test-byteswap test-c-ctype test-c-strcasecmp test-c-strncasecmp test-calloc-gnu test-cloexec test-close test-connect test-ctype test-dup2 test-environ test-errno test-explicit_bzero test-fcntl-h test-fcntl test-fdopen test-fgetc test-float test-fopen-gnu test-fopen test-fpending test-fputc test-fread test-free test-fseek test-fseeko test-fseeko3 test-fseeko4 test-fstat test-ftell test-ftell3 test-ftello test-ftello3 test-ftello4 test-ftruncate test-func test-fwrite test-getaddrinfo test-getcwd-lgpl test-getdelim test-getdtablesize test-getline test-getpeername test-getprogname test-gettimeofday test-hash test-ignore-value test-inet_ntop test-inet_pton test-intprops test-inttostr test-inttypes test-ioctl test-isblank test-langinfo test-limits-h test-linked_list test-listen test-locale test-localename test-rwlock1 test-lock test-once1 test-once2 test-lseek test-lstat test-malloc-gnu test-malloca test-memchr test-nanosleep test-netdb test-netinet_in test-nstrftime test-open test-parse-datetime test-pathmax test-perror test-perror2 test-pipe test-pthread test-pthread-thread test-pthread_sigmask1 test-pthread_sigmask2 test-raise test-read-file test-realloc-gnu test-reallocarray test-recv test-recvfrom test-sched test-select test-select-fd test-select-stdin test-send test-sendto test-setenv test-setlocale_null test-setlocale_null-mt-one test-setlocale_null-mt-all test-setlocale1 test-setlocale2 test-setsockopt test-shutdown test-sigaction test-signal-h test-sigprocmask test-sleep test-snprintf test-sockets test-stat test-stat-time test-stdalign test-stdbool test-stddef test-stdint test-stdio test-stdlib test-strerror test-strerror_r test-string test-strings test-strnlen test-strtoll test-strverscmp test-symlink test-sys_ioctl test-sys_select test-sys_socket test-sys_stat test-sys_time test-sys_types test-sys_uio test-thread_self test-thread_create test-time test-timespec test-unistd test-unsetenv test-usleep test-vasnprintf test-vasprintf test-verify test-vsnprintf test-wchar test-xalloc-die libtests.a make[6]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' CC gl_array_list.o CC hash-pjw.o CC localename-table.o CC dtotimespec.o CC binary-io.o CC offtostr.o CC umaxtostr.o CC test-accept.o CC inttostr.o CC sig-handler.o CC imaxtostr.o CC setlocale_null.o CC localename.o CC uinttostr.o CC timespec-add.o CC timespec-sub.o CC vma-iter.o CC ioctl.o CC nanosleep.o CC test-alloca-opt.o CC strerror_r.o CC test-arpa_inet.o CC test-array_list.o CC test-binary-io.o CC test-bind.o CC test-byteswap.o CC test-bitrotate.o CC test-c-ctype.o CC test-c-strcasecmp.o CC test-c-strncasecmp.o CC test-calloc-gnu.o CC test-close.o CC test-cloexec.o CC test-connect.o CC test-ctype.o CC test-dup2.o CC test-environ.o CC test-errno.o CC test-explicit_bzero.o CC test-fcntl-h.o CC test-fcntl.o CC test-fdopen.o CC test-fgetc.o CC test-float.o CC test-fopen-gnu.o CC test-fopen.o CC test-fpending.o CC test-fputc.o CC test-free.o CC test-fread.o CC test-fseek.o CC test-fseeko.o CC test-fseeko3.o CC test-fseeko4.o CC test-fstat.o CC test-ftell.o CC test-ftell3.o CC test-ftello.o CC test-ftello3.o CC test-ftello4.o CC test-ftruncate.o CC test-func.o CC test-getaddrinfo.o CC test-fwrite.o CC test-getcwd-lgpl.o CC test-getdelim.o CC test-getdtablesize.o CC test-getline.o CC test-getpeername.o CC test-getprogname.o CC test-gettimeofday.o CC test-hash.o CC test-ignore-value.o CC test-inet_ntop.o CC test-intprops.o CC test-inet_pton.o CC test-inttypes.o CC test-inttostr.o CC test-ioctl.o CC test-isblank.o CC test-langinfo.o CC test-limits-h.o CC test-linked_list.o CC test-listen.o CC test-locale.o CC test-localename.o CC test-rwlock1.o CC test-lock.o CC test-once.o CC test-lseek.o CC test-lstat.o CC test-malloc-gnu.o CC test-malloca.o CC test-memchr.o CC test-nanosleep.o CC test-netdb.o CC test-netinet_in.o CC test-nstrftime.o CC test-open.o CC test-parse-datetime.o CC test-pathmax.o CC test-perror.o CC test-perror2.o CC test-pipe.o CC test-pthread.o CC test-pthread-thread.o CC test-pthread_sigmask2.o CC test-pthread_sigmask1.o CC test-raise.o CC test-read-file.o CC test-realloc-gnu.o CC test-reallocarray.o CC test-recv.o CC test-recvfrom.o CC test-sched.o CC test-select.o CC test-select-fd.o CC test-select-stdin.o CC test-send.o CC test-sendto.o CC test-setenv.o CC test-setlocale_null.o CC test-setlocale_null-mt-one.o CC test-setlocale_null-mt-all.o CC test-setlocale2.o CC test-setsockopt.o CC test-setlocale1.o CC test-shutdown.o CC test-sigaction.o CC test-signal-h.o CC test-sigprocmask.o CC test-sleep.o CC test-snprintf.o CC test-sockets.o CC test-stat.o CC test-stat-time.o CC test-stdalign.o CC test-stdbool.o CC test-stddef.o CC test-stdint.o CC test-stdlib.o CC test-stdio.o CC test-strerror.o CC test-strerror_r.o CC test-string.o CC test-strings.o CC test-strnlen.o CC test-strtoll.o CC test-strverscmp.o CC test-symlink.o CC test-sys_ioctl.o CC test-sys_select.o CC test-sys_socket.o CC test-sys_stat.o CC test-sys_time.o CC test-sys_types.o CC test-sys_uio.o CC test-thread_create.o CC test-thread_self.o CC test-time.o CC test-timespec.o CC test-unistd.o CC test-unsetenv.o CC test-usleep.o CC test-vasprintf.o CC test-vasnprintf.o CC test-verify.o CC test-vsnprintf.o CC test-wchar.o CC test-xalloc-die.o CC glthread/thread.o AR libtests.a CCLD test-alloca-opt CCLD test-arpa_inet CCLD test-bind CCLD test-binary-io CCLD test-byteswap CCLD test-bitrotate CCLD test-close CCLD test-array_list CCLD test-c-strcasecmp CCLD test-accept CCLD test-calloc-gnu CCLD test-cloexec CCLD test-c-ctype CCLD test-c-strncasecmp CCLD test-connect CCLD test-ctype CCLD test-dup2 CCLD test-environ CCLD test-errno CCLD test-explicit_bzero CCLD test-fcntl-h CCLD test-fcntl CCLD test-fdopen CCLD test-fgetc CCLD test-float CCLD test-fopen-gnu CCLD test-fopen CCLD test-fpending CCLD test-fputc CCLD test-fread CCLD test-free CCLD test-fseek CCLD test-fseeko CCLD test-fseeko3 CCLD test-fseeko4 CCLD test-fstat CCLD test-ftell CCLD test-ftello CCLD test-ftell3 CCLD test-ftello3 CCLD test-ftello4 CCLD test-ftruncate CCLD test-func CCLD test-fwrite CCLD test-getaddrinfo CCLD test-getcwd-lgpl CCLD test-getdelim CCLD test-getdtablesize CCLD test-getline CCLD test-getpeername CCLD test-getprogname CCLD test-gettimeofday CCLD test-hash CCLD test-ignore-value CCLD test-inet_ntop CCLD test-inet_pton CCLD test-intprops CCLD test-inttostr CCLD test-inttypes CCLD test-ioctl CCLD test-isblank CCLD test-langinfo CCLD test-limits-h CCLD test-linked_list CCLD test-listen CCLD test-locale CCLD test-localename CCLD test-rwlock1 CCLD test-lock CCLD test-once1 CCLD test-once2 CCLD test-lseek CCLD test-lstat CCLD test-malloc-gnu CCLD test-malloca CCLD test-memchr CCLD test-nanosleep CCLD test-netdb CCLD test-netinet_in CCLD test-nstrftime CCLD test-open CCLD test-parse-datetime CCLD test-pathmax CCLD test-perror CCLD test-perror2 CCLD test-pipe CCLD test-pthread CCLD test-pthread-thread CCLD test-pthread_sigmask1 CCLD test-pthread_sigmask2 CCLD test-raise CCLD test-read-file CCLD test-realloc-gnu CCLD test-reallocarray CCLD test-recv CCLD test-recvfrom CCLD test-sched CCLD test-select CCLD test-select-fd CCLD test-select-stdin CCLD test-send CCLD test-sendto CCLD test-setenv CCLD test-setlocale_null CCLD test-setlocale_null-mt-one CCLD test-setlocale_null-mt-all CCLD test-setlocale1 CCLD test-setlocale2 CCLD test-setsockopt CCLD test-shutdown CCLD test-sigaction CCLD test-signal-h CCLD test-sigprocmask CCLD test-sleep CCLD test-snprintf CCLD test-sockets CCLD test-stat CCLD test-stat-time CCLD test-stdalign CCLD test-stddef CCLD test-stdbool CCLD test-stdint CCLD test-stdlib CCLD test-stdio CCLD test-strerror CCLD test-strerror_r CCLD test-string CCLD test-strings CCLD test-strtoll CCLD test-strnlen CCLD test-strverscmp CCLD test-symlink CCLD test-sys_ioctl CCLD test-sys_select CCLD test-sys_socket CCLD test-sys_stat CCLD test-sys_time CCLD test-sys_types CCLD test-sys_uio CCLD test-thread_self CCLD test-thread_create CCLD test-time CCLD test-timespec CCLD test-unistd CCLD test-unsetenv CCLD test-usleep CCLD test-vasprintf CCLD test-vasnprintf CCLD test-verify CCLD test-vsnprintf make[6]: 'libtests.a' is up to date. CCLD test-wchar CCLD test-xalloc-die make[6]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make check-TESTS make[6]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make[7]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' PASS: test-accept PASS: test-array_list PASS: test-arpa_inet PASS: test-bitrotate PASS: test-bind PASS: test-byteswap PASS: test-close PASS: test-c-ctype PASS: test-cloexec PASS: test-dup2 PASS: test-calloc-gnu PASS: test-c-strcase.sh PASS: test-ctype PASS: test-connect PASS: test-binary-io.sh PASS: test-environ PASS: test-alloca-opt PASS: test-fgetc PASS: test-fcntl-h PASS: test-fdopen PASS: test-fcntl PASS: test-explicit_bzero PASS: test-fopen PASS: test-errno PASS: test-fputc PASS: test-float PASS: test-fread PASS: test-fopen-gnu PASS: test-fpending.sh PASS: test-fseek.sh PASS: test-fstat PASS: test-fseek2.sh PASS: test-ftell3 PASS: test-fseeko2.sh PASS: test-fseeko.sh PASS: test-fseeko4.sh PASS: test-ftell2.sh PASS: test-ftello3 PASS: test-fseeko3.sh PASS: test-ftello2.sh PASS: test-ftello4.sh PASS: test-ftello.sh PASS: test-ftell.sh PASS: test-fwrite PASS: test-func PASS: test-ftruncate.sh PASS: test-getdtablesize PASS: test-getdelim PASS: test-free PASS: test-getline PASS: test-getcwd-lgpl PASS: test-getpeername PASS: test-getprogname PASS: test-gettimeofday PASS: test-inet_ntop PASS: test-ignore-value PASS: test-inet_pton PASS: test-intprops PASS: test-inttypes PASS: test-inttostr PASS: test-ioctl PASS: test-langinfo PASS: test-limits-h PASS: test-isblank PASS: test-linked_list PASS: test-locale PASS: test-listen PASS: test-localename PASS: test-rwlock1 PASS: test-once1 PASS: test-once2 PASS: test-malloc-gnu PASS: test-netdb PASS: test-netinet_in PASS: test-getaddrinfo PASS: test-lstat PASS: test-open PASS: test-nstrftime PASS: test-malloca PASS: test-lseek.sh PASS: test-parse-datetime PASS: test-pathmax PASS: test-pipe PASS: test-pthread-thread PASS: test-pthread PASS: test-perror2 PASS: test-nanosleep PASS: test-raise PASS: test-realloc-gnu PASS: test-recv PASS: test-reallocarray PASS: test-read-file PASS: test-sched PASS: test-hash PASS: test-select PASS: test-recvfrom PASS: test-sendto PASS: test-send PASS: test-setenv PASS: test-setlocale_null SKIP: test-setlocale_null-mt-one SKIP: test-setlocale_null-mt-all SKIP: test-setlocale1.sh PASS: test-setsockopt PASS: test-shutdown PASS: test-signal-h PASS: test-sigaction PASS: test-pthread_sigmask2 PASS: test-snprintf PASS: test-pthread_sigmask1 PASS: test-sockets PASS: test-stat PASS: test-stat-time PASS: test-stdbool PASS: test-stdalign PASS: test-stddef PASS: test-select-out.sh PASS: test-stdio PASS: test-stdint PASS: test-stdlib PASS: test-string PASS: test-perror.sh PASS: test-strerror_r PASS: test-strerror PASS: test-strings PASS: test-strverscmp PASS: test-sys_ioctl PASS: test-setlocale2.sh PASS: test-sys_select PASS: test-strtoll PASS: test-sys_socket PASS: test-symlink PASS: test-strnlen PASS: test-sys_stat PASS: test-sleep PASS: test-sys_time PASS: test-sys_types PASS: test-sigprocmask PASS: test-sys_uio PASS: test-select-in.sh PASS: test-thread_create PASS: test-thread_self PASS: test-time PASS: test-timespec PASS: test-unsetenv PASS: test-vasnprintf PASS: test-unistd PASS: test-vasprintf PASS: test-vsnprintf PASS: test-verify PASS: test-wchar PASS: test-memchr PASS: test-usleep PASS: test-xalloc-die.sh PASS: test-init.sh PASS: test-lock PASS: test-verify.sh ============================================================================ Testsuite summary for GnuTLS 3.7.8 ============================================================================ # TOTAL: 157 # PASS: 154 # SKIP: 3 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ make[7]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make[6]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make[5]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl/tests' make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl' make[1]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src/gl' Making check in src make[1]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src' make check-am make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/src' make[2]: Nothing to be done for 'check-am'. make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src' make[1]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/src' Making check in tests make[1]: Entering directory '/build/gnutls/src/gnutls-3.7.8/tests' Making check in . make[2]: Entering directory '/build/gnutls/src/gnutls-3.7.8/tests' make tls13/supported_versions tls13/tls12-no-tls13-exts tls13/post-handshake-with-cert tls13/post-handshake-without-cert tls13/cookie tls13/key_share tls13/prf tls13/prf-early tls13/post-handshake-with-cert-ticket tls12-rollback-detection tls11-rollback-detection tls12-check-rollback-val tls11-check-rollback-val tls13/post-handshake-with-psk tls13/post-handshake-with-cert-auto tls13/anti_replay tls13/compress-cert tls13/compress-cert-neg tls13/compress-cert-neg2 tls13/compress-cert-cli tls13/hello_retry_request tls13/hello_retry_request_resume tls13/psk-ext tls13/key_update tls13/key_update_multiple tls13/key_limits tls13/multi-ocsp tls13/ocsp-client tls13/change_cipher_spec tls13-cipher-neg tls13/no-psk-exts tls13/psk-dumbfw tls13/psk-ke-modes tls13-early-start tls13/no-auto-send-ticket mini-record-2 simple gnutls_hmac_fast set_pkcs12_cred cert certuniqueid tls-neg-ext-key mpi certificate_set_x509_crl dn parse_ca x509-dn x509-dn-decode record-sizes hostname-check cve-2008-4989 pkcs12_s2k chainverify missingissuer missingissuer_aia record-sizes-range crq_key_id x509sign-verify sign-verify cve-2009-1415 cve-2009-1416 tls10-server-kx-neg tls11-server-kx-neg tls12-server-kx-neg ssl30-server-kx-neg tls12-cipher-neg tls11-cipher-neg tls10-cipher-neg ssl30-cipher-neg crq_apis init_roundtrip pkcs12_s2k_pem dn2 tls12-rehandshake-cert-3 nul-in-x509-names x509_altname pkcs12_encode mini-x509 gnutls_session_set_id rng-fork mini-eagain-dtls resume-dtls empty_retrieve_function tls13-rehandshake-cert gnutls_ext_raw_parse handshake-large-cert x509cert x509cert-tl x509cert-ct infoaccess mini-dtls-hello-verify sign-verify-ed25519-rfc8080 trustdb-tofu dtls-rehandshake-anon mini-alpn mini-dtls-large mini-termination mini-x509-cas mini-x509-2 pkcs12_simple tls-pthread mini-emsgsize-dtls chainverify-unsorted mini-overhead tls12-ffdhe mini-dtls-heartbeat mini-x509-callbacks key-openssl priorities priorities-groups gnutls_x509_privkey_import gnutls_x509_crt_list_import time x509-server-verify sign-verify-ext4 tls-neg-ext4-key resume-lifetime mini-dtls-srtp rsa-encrypt-decrypt mini-loss-time gnutls-strcodes mini-record mini-dtls-record handshake-timeout mini-record-range cert-status fips-mode-pthread rsa-psk global-init sec-params sign-verify-data fips-test fips-override-test mini-global-load name-constraints x509-extensions long-session-id mini-x509-callbacks-intr mini-dtls-lowmtu set_x509_key_file-late crlverify mini-dtls-discard mini-record-failure openconnect-dtls12 tls12-rehandshake-cert-2 custom-urls set_x509_key_mem set_x509_key_file tls12-rehandshake-cert-auto tls12-rehandshake-set-prio mini-chain-unsorted x509-verify-with-crl mini-dtls-mtu privkey-verify-broken mini-dtls-record-asym key-import-export priority-set priority-set2 pubkey-import-export sign-is-secure spki spki-abstract rsa-rsa-pss mini-dtls-fork dtls-pthread mini-key-material x509cert-invalid tls-ext-register tls-supplemental mini-dtls0-9 duplicate-extensions record-retvals mini-server-name tls-etm tls-force-etm x509-cert-callback alerts client-sign-md5-rep tls12-invalid-key-exchanges session-rdn-read tls13-cert-key-exchange x509-cert-callback-ocsp gnutls_ocsp_resp_list_import2 server-sign-md5-rep privkey-keygen mini-tls-nonblock no-signal pkcs7-gen dtls-etm x509sign-verify-rsa x509sign-verify-ecdsa x509sign-verify-gost cipher-alignment oids atfork prf psk-file priority-init2 post-client-hello-change-prio status-request status-request-ok rfc7633-missing sign-verify-ext fallback-scsv pkcs8-key-decode urls dtls-rehandshake-cert rfc7633-ok key-usage-rsa key-usage-ecdhe-rsa mini-session-verify-function auto-verify record-timeouts mini-dtls-hello-verify-48 set-default-prio tls12-anon-upgrade tlsext-decoding rsa-psk-cb gnutls-ids rehandshake-switch-cert rehandshake-switch-cert-allow rehandshake-switch-cert-client rehandshake-switch-cert-client-allow handshake-versions dtls-handshake-versions dtls-max-record tls12-max-record alpn-server-prec ocsp-filename-memleak dh-params rehandshake-ext-secret pcert-list session-export-funcs handshake-false-start version-checks key-material-dtls key-material-set-dtls name-constraints-merge crl-basic crq-basic send-client-cert custom-urls-override hex rehandshake-switch-psk-id rehandshake-switch-srp-id base64 srpbase64 pkcs1-digest-info set_x509_key set_x509_key_file_der set_x509_pkcs12_key crt_apis tls12-cert-key-exchange tls11-cert-key-exchange tls10-cert-key-exchange ssl30-cert-key-exchange dtls12-cert-key-exchange dtls10-cert-key-exchange x509-cert-callback-legacy keylog-env ssl2-hello tlsfeature-ext dtls-rehandshake-cert-2 dtls-session-ticket-lost tlsfeature-crt dtls-rehandshake-cert-3 resume-with-false-start set_x509_key_file_ocsp client-fastopen rng-sigint srp rng-pthread safe-renegotiation/srn0 safe-renegotiation/srn1 safe-renegotiation/srn2 safe-renegotiation/srn3 safe-renegotiation/srn4 safe-renegotiation/srn5 rsa-illegal-import set_x509_ocsp_multi_invalid set_key set_x509_key_file_ocsp_multi2 set_x509_ocsp_multi_unknown set_x509_ocsp_multi_pem tls-ext-not-in-dtls set_key_utf8 set_x509_key_utf8 insecure_key handshake-large-packet client_dsa_key server_ecdsa_key tls-session-ext-register tls-session-supplemental multi-alerts naked-alerts pkcs7-cat-parse set_known_dh_params_x509 set_known_dh_params_anon set_known_dh_params_psk session-tickets-ok session-tickets-missing set_x509_key_file_legacy status-request-ext gnutls_x509_crt_sign gnutls_x509_crq_sign dtls-repro-20170915 rng-no-onload dtls1-2-mtu-check crl_apis cert_verify_inv_utf8 no-extensions hostname-check-utf8 pkcs8-key-decode-encrypted priority-mix pkcs7 send-data-before-handshake recv-data-before-handshake crt_inv_write x509sign-verify-error rng-op-nonce rng-op-random rng-op-key x509-dn-decode-compat ip-check mini-x509-ipaddr trust-store base64-raw random-art dhex509self dss-sig-val sign-pk-api tls-session-ext-override record-pad tls13-server-kx-neg gnutls_ext_raw_parse_dtls key-export-pkcs8 null_retrieve_function tls-record-size-limit tls-crt_type-neg resume-with-stek-expiration resume-with-previous-stek rawpk-api tls-record-size-limit-asym dh-compute ecdh-compute sign-verify-data-newapi sign-verify-newapi sign-verify-deterministic iov aead-cipher-vec tls13-without-timeout-func buffer status-request-revoked set_x509_ocsp_multi_cli kdf-api keylog-func handshake-write x509cert-dntypes id-on-xmppAddr tls13-compat-mode ciphersuite-name x509-upnconstraint cipher-padding pkcs7-verify-double-free fips-rsa-sizes tls-channel-binding strict-der system-prio-file pkcs11-cert-import-url-exts pkcs11-get-exts pkcs11-get-raw-issuer-exts pkcs11-cert-import-url4-exts pkcs11/pkcs11-chainverify pkcs11/pkcs11-get-issuer pkcs11/pkcs11-is-known pkcs11/pkcs11-combo pkcs11/pkcs11-privkey pkcs11/pkcs11-pubkey-import-rsa pkcs11/pkcs11-pubkey-import-ecdsa pkcs11-import-url-privkey pkcs11-privkey-fork pkcs11/pkcs11-ec-privkey-test pkcs11-privkey-always-auth pkcs11-privkey-export pkcs11/pkcs11-import-with-pin pkcs11/pkcs11-privkey-pthread pkcs11/pkcs11-pin-func pkcs11/pkcs11-obj-import pkcs11-privkey-fork-reinit pkcs11-mechanisms pkcs11-privkey-safenet-always-auth pkcs11/pkcs11-rsa-pss-privkey-test pkcs11/tls-neg-pkcs11-key pkcs11/pkcs11-privkey-generate pkcs11/gnutls_x509_crt_list_import_url pkcs11/gnutls_pcert_list_import_x509_file pkcs11/pkcs11-eddsa-privkey-test pkcs11-token-raw pkcs11-obj-raw pkcs11-import-url-privkey-caps ocsp openssl x509self x509dn anonself pskself pskself2 dhepskself setcredcrash tls12-resume-x509 tls12-resume-psk tls12-resume-anon tls13-resume-x509 tls13-resume-psk tls13-early-data tls13-early-data-neg tls13-early-data-neg2 resume-with-record-size-limit record-sendfile tls13/post-handshake-with-cert-pkcs11 pkcs11/tls-neg-pkcs11-no-key global-init-override system-override-hash system-override-sig system-override-sig-tls dtls-stress system-override-curves-allowlist protocol-set-allowlist pkcs11/list-tokens pkcs11/list-objects datefudge-check \ rfc2253-escape-test.sh rsa-md5-collision/rsa-md5-collision.sh systemkey.sh tpm2.sh dtls/dtls.sh dtls/dtls-resume.sh fastopen.sh pkgconfig.sh starttls.sh starttls-ftp.sh starttls-smtp.sh starttls-lmtp.sh starttls-pop3.sh starttls-xmpp.sh starttls-nntp.sh starttls-sieve.sh ocsp-tests/ocsp-tls-connection.sh ocsp-tests/ocsp-must-staple-connection.sh ocsp-tests/ocsp-test.sh cipher-listings.sh sni-hostname.sh server-multi-keys.sh psktool.sh ocsp-tests/ocsp-load-chain.sh gnutls-cli-save-data.sh gnutls-cli-debug.sh sni-resume.sh ocsp-tests/ocsptool.sh cert-reencoding.sh pkcs7-cat.sh long-crl.sh serv-udp.sh logfile-option.sh gnutls-cli-resume.sh profile-tests.sh server-weak-keys.sh ocsp-tests/ocsp-signer-verify.sh cfg-test.sh sanity-lib.sh system-override-sig.sh system-override-hash.sh system-override-versions.sh system-override-invalid.sh system-override-curves.sh system-override-profiles.sh system-override-tls.sh system-override-kx.sh system-override-default-priority-string.sh system-override-sig-tls.sh system-override-hash-filters-prf.sh system-override-sig-allowlist.sh system-override-hash-allowlist.sh system-override-versions-allowlist.sh system-override-curves-allowlist.sh system-override-special-allowlist.sh protocol-set-allowlist.sh gnutls-cli-self-signed.sh gnutls-cli-invalid-crl.sh gnutls-cli-rawpk.sh dh-fips-approved.sh p11-kit-trust.sh testpkcs11.sh certtool-pkcs11.sh p11-kit-load.sh make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/tests' CC mpi-mpi.o CC tls13-cipher-neg.o CC mini-record-2.o CC x509-dn.o CC tls13-early-start.o CC gnutls_hmac_fast.o CC certuniqueid.o CC simple.o CC parse_ca.o CC cert.o CC set_pkcs12_cred.o CC dn.o CC certificate_set_x509_crl.o CC tls-neg-ext-key.o CC x509-dn-decode.o CC record-sizes.o CC hostname-check.o CC cve-2008-4989.o CC pkcs12_s2k-pkcs12_s2k.o CC chainverify.o CC missingissuer.o CC missingissuer_aia.o CC record-sizes-range.o CC crq_key_id.o CC x509sign-verify.o CC sign-verify.o CC cve-2009-1415.o CC cve-2009-1416.o CC tls10-server-kx-neg.o CC tls12-server-kx-neg.o CC tls11-server-kx-neg.o CC ssl30-server-kx-neg.o CC tls12-cipher-neg.o CC tls11-cipher-neg.o CC tls10-cipher-neg.o CC crq_apis.o CC ssl30-cipher-neg.o CC init_roundtrip.o CC pkcs12_s2k_pem.o CC dn2.o CC tls12-rehandshake-cert-3.o CC x509_altname.o CC nul-in-x509-names.o CC pkcs12_encode.o CC mini-x509.o CC gnutls_session_set_id.o CC rng-fork.o CC resume-dtls.o CC mini-eagain-dtls.o CC empty_retrieve_function.o CC tls13-rehandshake-cert.o CC gnutls_ext_raw_parse.o CC handshake-large-cert.o CC x509cert.o CC x509cert-tl.o CC x509cert-ct.o CC infoaccess.o CC mini-dtls-hello-verify.o CC sign-verify-ed25519-rfc8080.o CC trustdb-tofu.o CC dtls-rehandshake-anon.o CC mini-alpn.o CC mini-dtls-large.o CC mini-termination.o CC mini-x509-cas.o CC mini-x509-2.o CC pkcs12_simple.o CC mini-emsgsize-dtls.o CC chainverify-unsorted.o CC tls-pthread.o CC mini-overhead.o CC tls12-ffdhe.o CC mini-dtls-heartbeat.o CC mini-x509-callbacks.o CC key-openssl.o CC priorities.o CC priorities-groups.o CC gnutls_x509_privkey_import.o CC gnutls_x509_crt_list_import.o CC time.o CC x509-server-verify.o CC sign-verify-ext4.o CC tls-neg-ext4-key.o CC resume-lifetime.o CC mini-dtls-srtp.o CC rsa-encrypt-decrypt.o CC mini-loss-time.o CC gnutls-strcodes.o CC mini-record.o CC mini-dtls-record.o CC handshake-timeout.o CC mini-record-range.o CC cert-status.o CC fips-mode-pthread.o CC rsa-psk.o CC global-init.o CC sec-params.o CC sign-verify-data.o CC fips-test.o CC fips-override-test.o CC mini-global-load.o CC name-constraints.o CC x509-extensions.o CC long-session-id.o CC mini-x509-callbacks-intr.o CC mini-dtls-lowmtu.o CC set_x509_key_file-late.o CC crlverify.o CC mini-dtls-discard.o CC mini-record-failure.o CC openconnect-dtls12.o CC tls12-rehandshake-cert-2.o CC custom-urls.o CC set_x509_key_mem.o CC tls12-rehandshake-cert-auto.o CC set_x509_key_file.o CC tls12-rehandshake-set-prio.o CC mini-chain-unsorted.o CC x509-verify-with-crl.o CC mini-dtls-mtu.o CC privkey-verify-broken.o CC mini-dtls-record-asym.o CC key-import-export.o CC priority-set.o CC priority-set2.o CC pubkey-import-export.o CC sign-is-secure.o CC spki.o CC spki-abstract.o CC rsa-rsa-pss.o CC mini-dtls-fork.o CC dtls-pthread.o CC mini-key-material.o CC x509cert-invalid.o CC tls-ext-register.o CC tls-supplemental.o CC mini-dtls0-9.o CC duplicate-extensions.o CC record-retvals.o CC mini-server-name.o CC tls-etm.o CC tls-force-etm.o CC x509-cert-callback.o CC alerts.o CC client-sign-md5-rep.o CC tls12-invalid-key-exchanges.o CC session-rdn-read.o CC common-cert-key-exchange.o CC tls13-cert-key-exchange.o CC x509-cert-callback-ocsp.o CC gnutls_ocsp_resp_list_import2.o CC server-sign-md5-rep.o CC privkey-keygen.o CC mini-tls-nonblock.o CC no-signal.o CC pkcs7-gen.o CC x509sign-verify-rsa.o CC dtls-etm.o CC x509sign-verify-ecdsa.o CC x509sign-verify-gost.o CC cipher_alignment-cipher-alignment.o CC oids.o CC atfork-atfork.o CC prf.o CC psk-file.o CC priority-init2.o CC post-client-hello-change-prio.o CC status-request.o CC status-request-ok.o CC rfc7633-missing.o CC sign-verify-ext.o CC fallback-scsv.o CC pkcs8-key-decode.o CC urls.o CC dtls-rehandshake-cert.o CC rfc7633-ok.o CC key-usage-rsa.o CC key-usage-ecdhe-rsa.o CC mini-session-verify-function.o CC auto-verify.o CC record-timeouts.o CC mini-dtls-hello-verify-48.o CC tls12-anon-upgrade.o CC set-default-prio.o CC tlsext-decoding.o CC rsa-psk-cb.o CC gnutls-ids.o CC rehandshake-switch-cert.o CC rehandshake-switch-cert-allow.o CC rehandshake-switch-cert-client.o CC rehandshake-switch-cert-client-allow.o CC handshake-versions.o CC dtls-handshake-versions.o CC dtls-max-record.o CC tls12-max-record.o CC alpn-server-prec.o CC ocsp-filename-memleak.o CC dh-params.o CC rehandshake-ext-secret.o CC pcert-list.o CC session-export-funcs.o CC handshake-false-start.o CC version-checks.o CC key-material-dtls.o CC key-material-set-dtls.o CC name_constraints_merge-name-constraints-merge.o CC crl-basic.o CC send-client-cert.o CC crq-basic.o CC custom-urls-override.o CC hex.o CC rehandshake-switch-psk-id.o CC rehandshake-switch-srp-id.o CC base64.o CC srpbase64.o CC pkcs1-digest-info.o CC set_x509_key.o CC set_x509_key_file_der.o CC set_x509_pkcs12_key.o CC crt_apis.o CC tls12-cert-key-exchange.o CC tls11-cert-key-exchange.o CC tls10-cert-key-exchange.o CC ssl30-cert-key-exchange.o CC dtls12-cert-key-exchange.o CC dtls10-cert-key-exchange.o CC x509-cert-callback-legacy.o CC keylog-env.o CC ssl2-hello.o CC tlsfeature-ext.o CC dtls-rehandshake-cert-2.o CC dtls-session-ticket-lost.o CC tlsfeature-crt.o CC dtls-rehandshake-cert-3.o CC resume-with-false-start.o CC set_x509_key_file_ocsp.o CC client-fastopen.o CC srp.o CC rng-sigint.o CC rng-pthread.o CC rsa_illegal_import-rsa-illegal-import.o keylog-env.c: In function 'doit': keylog-env.c:169:9: warning: ignoring return value of 'truncate' declared with attribute 'warn_unused_result' [-Wunused-result] 169 | truncate(filename, 0); | ^~~~~~~~~~~~~~~~~~~~~ CC set_x509_ocsp_multi_invalid.o CC set_key.o CC set_x509_key_file_ocsp_multi2.o CC set_x509_ocsp_multi_unknown.o CC set_x509_ocsp_multi_pem.o CC tls-ext-not-in-dtls.o CC set_key_utf8.o CC set_x509_key_utf8.o CC insecure_key.o CC client_dsa_key.o CC handshake-large-packet.o CC server_ecdsa_key.o CC tls-session-ext-register.o CC tls-session-supplemental.o CC multi-alerts.o CC naked-alerts.o CC pkcs7-cat-parse.o CC set_known_dh_params_x509.o CC set_known_dh_params_anon.o CC set_known_dh_params_psk.o CC session-tickets-ok.o CC session-tickets-missing.o CC set_x509_key_file_legacy.o CC status-request-ext.o CC gnutls_x509_crt_sign.o CC gnutls_x509_crq_sign.o CC dtls-repro-20170915.o CC rng-no-onload.o CC dtls1-2-mtu-check.o CC crl_apis.o CC cert_verify_inv_utf8.o CC no-extensions.o CC hostname-check-utf8.o CC pkcs8-key-decode-encrypted.o CC priority-mix.o CC pkcs7.o CC send-data-before-handshake.o CC recv-data-before-handshake.o CC crt_inv_write.o CC x509sign-verify-error.o CC rng-op-nonce.o CC rng-op-random.o CC rng-op-key.o CC x509-dn-decode-compat.o CC ip-check.o CC mini-x509-ipaddr.o CC trust-store.o CC base64-raw.o CC random-art.o CC dhex509self.o CC dss-sig-val.o CC sign-pk-api.o CC tls-session-ext-override.o CC record-pad.o CC tls13-server-kx-neg.o CC gnutls_ext_raw_parse_dtls.o CC key-export-pkcs8.o CC null_retrieve_function.o CC tls-record-size-limit.o CC tls-crt_type-neg.o CC resume-with-stek-expiration.o CC resume-with-previous-stek.o CC rawpk-api.o CC tls-record-size-limit-asym.o CC dh-compute.o CC ecdh-compute.o CC sign-verify-data-newapi.o CC sign-verify-newapi.o CC sign-verify-deterministic.o CC iov-iov.o CC aead-cipher-vec.o CC tls13-without-timeout-func.o CC buffer-buffer.o CC status-request-revoked.o CC set_x509_ocsp_multi_cli.o CC kdf-api.o CC keylog-func.o CC handshake-write.o CC x509cert-dntypes.o CC id-on-xmppAddr.o CC tls13-compat-mode.o CC ciphersuite-name.o CC x509-upnconstraint.o CC cipher-padding.o CC pkcs7-verify-double-free.o CC fips-rsa-sizes.o CC tls-channel-binding.o CC strict-der.o CC pkcs11/pkcs11-cert-import-url-exts.o CC system-prio-file.o CC pkcs11/pkcs11-get-exts.o CC pkcs11/pkcs11-get-raw-issuer-exts.o CC pkcs11/pkcs11-cert-import-url4-exts.o CC pkcs11/pkcs11-chainverify.o CC pkcs11/pkcs11-get-issuer.o CC pkcs11/pkcs11-is-known.o CC pkcs11/pkcs11-combo.o CC pkcs11/pkcs11-privkey.o CC pkcs11/pkcs11-pubkey-import-rsa.o pkcs11/pkcs11-combo.c: In function 'doit': pkcs11/pkcs11-combo.c:247:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 247 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-combo.c:42: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC pkcs11/pkcs11-pubkey-import-ecdsa.o CC pkcs11/pkcs11-import-url-privkey.o pkcs11/pkcs11-chainverify.c: In function 'doit': pkcs11/pkcs11-chainverify.c:109:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 109 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-chainverify.c:36: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC pkcs11/pkcs11-privkey-fork.o pkcs11/pkcs11-get-issuer.c: In function 'doit': pkcs11/pkcs11-get-issuer.c:131:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 131 | system(buf); | ^~~~~~~~~~~ CC pkcs11/pkcs11-ec-privkey-test.o pkcs11/pkcs11-privkey.c: In function 'doit': pkcs11/pkcs11-privkey.c:159:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 159 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-get-issuer.c:38: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-privkey.c:37: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-pubkey-import-rsa.c:35: pkcs11/pkcs11-pubkey-import.c: In function 'try': pkcs11/pkcs11-pubkey-import.c:98:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 98 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-pubkey-import.c:38: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC pkcs11/pkcs11-privkey-always-auth.o CC pkcs11/pkcs11-privkey-export.o CC pkcs11/pkcs11-import-with-pin.o pkcs11/pkcs11-is-known.c: In function 'doit': CC pkcs11/pkcs11-privkey-pthread.o pkcs11/pkcs11-is-known.c:382:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 382 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-is-known.c:38: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-pubkey-import-ecdsa.c:36: pkcs11/pkcs11-pubkey-import.c: In function 'try': pkcs11/pkcs11-pubkey-import.c:98:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 98 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-pubkey-import-ecdsa.c:31: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC pkcs11/pkcs11-pin-func.o CC pkcs11/pkcs11-obj-import.o CC pkcs11/pkcs11-privkey-fork-reinit.o CC pkcs11/pkcs11-mechanisms.o CC pkcs11/pkcs11-privkey-safenet-always-auth.o pkcs11/pkcs11-ec-privkey-test.c: In function 'doit': pkcs11/pkcs11-ec-privkey-test.c:106:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 106 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-ec-privkey-test.c:38: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC pkcs11/pkcs11-rsa-pss-privkey-test.o CC pkcs11/tls-neg-pkcs11-key.o CC pkcs11/pkcs11-privkey-generate.o CC pkcs11/gnutls_x509_crt_list_import_url.o CC pkcs11/gnutls_pcert_list_import_x509_file.o CC pkcs11/pkcs11-eddsa-privkey-test.o pkcs11/pkcs11-import-with-pin.c: In function 'doit': pkcs11/pkcs11-import-with-pin.c:106:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 106 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-import-with-pin.c:38: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ pkcs11/pkcs11-obj-import.c: In function 'doit': pkcs11/pkcs11-obj-import.c:98:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 98 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-obj-import.c:41: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC pkcs11/pkcs11-token-raw.o CC pkcs11/pkcs11-obj-raw.o CC pkcs11/import_url_privkey_caps-pkcs11-import-url-privkey.o CC ocsp.o pkcs11/tls-neg-pkcs11-key.c: In function 'doit': pkcs11/tls-neg-pkcs11-key.c:446:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 446 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/tls-neg-pkcs11-key.c:45: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC openssl.o pkcs11/pkcs11-rsa-pss-privkey-test.c: In function 'doit': pkcs11/pkcs11-rsa-pss-privkey-test.c:121:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 121 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-rsa-pss-privkey-test.c:37: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC x509self.o pkcs11/pkcs11-privkey-generate.c: In function 'doit': pkcs11/pkcs11-privkey-generate.c:107:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 107 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-privkey-generate.c:49: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC x509dn.o CC anonself.o CC pskself.o pkcs11/pkcs11-eddsa-privkey-test.c: In function 'doit': pkcs11/pkcs11-eddsa-privkey-test.c:124:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 124 | system(buf); | ^~~~~~~~~~~ pkcs11/gnutls_x509_crt_list_import_url.c: In function 'doit': pkcs11/gnutls_x509_crt_list_import_url.c:153:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 153 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/pkcs11-eddsa-privkey-test.c:37: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/gnutls_x509_crt_list_import_url.c:37: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC pskself2.o pkcs11/gnutls_pcert_list_import_x509_file.c: In function 'doit': pkcs11/gnutls_pcert_list_import_x509_file.c:173:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 173 | system(buf); | ^~~~~~~~~~~ In file included from pkcs11/gnutls_pcert_list_import_x509_file.c:37: pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ CC dhepskself.o CC setcredcrash.o CC tls12_resume_x509-resume.o CC tls12_resume_psk-resume.o CC tls12_resume_anon-resume.o CC tls13_resume_x509-resume.o CC tls13_resume_psk-resume.o CC tls13-early-data-neg.o CC tls13-early-data.o CC tls13-early-data-neg2.o CC resume-with-record-size-limit.o CC record-sendfile.o CC tls13/post-handshake-with-cert-pkcs11.o CC pkcs11/tls-neg-pkcs11-no-key.o CC global-init-override.o CC system-override-hash.o CC system-override-sig.o CC system-override-sig-tls.o pkcs11/tls-neg-pkcs11-no-key.c: In function 'doit': pkcs11/tls-neg-pkcs11-no-key.c:346:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 346 | system(buf); | ^~~~~~~~~~~ CC system-override-curves-allowlist.o In file included from pkcs11/tls-neg-pkcs11-no-key.c:52: ./pkcs11/softhsm.h: In function 'set_softhsm_conf': ./pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ tls13/post-handshake-with-cert-pkcs11.c: In function 'doit': tls13/post-handshake-with-cert-pkcs11.c:460:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 460 | system(buf); | ^~~~~~~~~~~ CC protocol-set-allowlist.o CC pkcs11/list-tokens.o In file included from tls13/post-handshake-with-cert-pkcs11.c:52: ./pkcs11/softhsm.h: In function 'set_softhsm_conf': ./pkcs11/softhsm.h:117:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | system(buf); | ^~~~~~~~~~~ make[3]: 'datefudge-check' is up to date. make[3]: Nothing to be done for 'rfc2253-escape-test.sh'. make[3]: Nothing to be done for 'rsa-md5-collision/rsa-md5-collision.sh'. make[3]: Nothing to be done for 'systemkey.sh'. make[3]: Nothing to be done for 'tpm2.sh'. make[3]: Nothing to be done for 'dtls/dtls.sh'. make[3]: Nothing to be done for 'dtls/dtls-resume.sh'. make[3]: Nothing to be done for 'fastopen.sh'. make[3]: Nothing to be done for 'pkgconfig.sh'. make[3]: Nothing to be done for 'starttls.sh'. make[3]: Nothing to be done for 'starttls-ftp.sh'. make[3]: Nothing to be done for 'starttls-smtp.sh'. make[3]: Nothing to be done for 'starttls-lmtp.sh'. make[3]: Nothing to be done for 'starttls-pop3.sh'. make[3]: Nothing to be done for 'starttls-xmpp.sh'. make[3]: Nothing to be done for 'starttls-nntp.sh'. make[3]: Nothing to be done for 'starttls-sieve.sh'. make[3]: Nothing to be done for 'ocsp-tests/ocsp-tls-connection.sh'. make[3]: Nothing to be done for 'ocsp-tests/ocsp-must-staple-connection.sh'. make[3]: Nothing to be done for 'ocsp-tests/ocsp-test.sh'. make[3]: Nothing to be done for 'cipher-listings.sh'. make[3]: Nothing to be done for 'sni-hostname.sh'. make[3]: Nothing to be done for 'server-multi-keys.sh'. make[3]: Nothing to be done for 'psktool.sh'. make[3]: Nothing to be done for 'ocsp-tests/ocsp-load-chain.sh'. make[3]: Nothing to be done for 'gnutls-cli-save-data.sh'. make[3]: Nothing to be done for 'gnutls-cli-debug.sh'. make[3]: Nothing to be done for 'sni-resume.sh'. make[3]: Nothing to be done for 'ocsp-tests/ocsptool.sh'. make[3]: Nothing to be done for 'cert-reencoding.sh'. make[3]: Nothing to be done for 'pkcs7-cat.sh'. make[3]: Nothing to be done for 'long-crl.sh'. make[3]: Nothing to be done for 'serv-udp.sh'. make[3]: Nothing to be done for 'logfile-option.sh'. make[3]: Nothing to be done for 'gnutls-cli-resume.sh'. make[3]: Nothing to be done for 'profile-tests.sh'. make[3]: Nothing to be done for 'server-weak-keys.sh'. make[3]: Nothing to be done for 'ocsp-tests/ocsp-signer-verify.sh'. make[3]: Nothing to be done for 'cfg-test.sh'. make[3]: Nothing to be done for 'sanity-lib.sh'. make[3]: Nothing to be done for 'system-override-sig.sh'. make[3]: Nothing to be done for 'system-override-hash.sh'. make[3]: Nothing to be done for 'system-override-versions.sh'. make[3]: Nothing to be done for 'system-override-invalid.sh'. make[3]: Nothing to be done for 'system-override-curves.sh'. make[3]: Nothing to be done for 'system-override-profiles.sh'. make[3]: Nothing to be done for 'system-override-tls.sh'. make[3]: Nothing to be done for 'system-override-kx.sh'. make[3]: Nothing to be done for 'system-override-default-priority-string.sh'. make[3]: Nothing to be done for 'system-override-sig-tls.sh'. make[3]: Nothing to be done for 'system-override-hash-filters-prf.sh'. make[3]: Nothing to be done for 'system-override-sig-allowlist.sh'. make[3]: Nothing to be done for 'system-override-hash-allowlist.sh'. make[3]: Nothing to be done for 'system-override-versions-allowlist.sh'. make[3]: Nothing to be done for 'system-override-curves-allowlist.sh'. make[3]: Nothing to be done for 'system-override-special-allowlist.sh'. make[3]: Nothing to be done for 'protocol-set-allowlist.sh'. make[3]: Nothing to be done for 'gnutls-cli-self-signed.sh'. make[3]: Nothing to be done for 'gnutls-cli-invalid-crl.sh'. make[3]: Nothing to be done for 'gnutls-cli-rawpk.sh'. make[3]: Nothing to be done for 'dh-fips-approved.sh'. make[3]: Nothing to be done for 'p11-kit-trust.sh'. make[3]: Nothing to be done for 'testpkcs11.sh'. make[3]: Nothing to be done for 'certtool-pkcs11.sh'. make[3]: Nothing to be done for 'p11-kit-load.sh'. CC pkcs11/list-objects.o CC tls13/supported_versions.o CC tls13/tls12-no-tls13-exts.o protocol-set-allowlist.c: In function 'doit': protocol-set-allowlist.c:233:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 233 | fgets(cmd_buf, MAX_CMD_LEN, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC tls13/post-handshake-with-cert.o CC tls13/post-handshake-without-cert.o CC tls13/cookie.o CC tls13/key_share.o CC tls13/prf.o CC tls13/post-handshake-with-cert-ticket.o CC tls13/prf-early.o CC tls13/tls12_rollback_detection-rnd-rollback-detection.o CC tls13/tls11_rollback_detection-rnd-rollback-detection.o CC tls13/tls12_check_rollback_val-rnd-check-rollback-val.o CC tls13/tls11_check_rollback_val-rnd-check-rollback-val.o CC tls13/post-handshake-with-psk.o CC tls13/post-handshake-with-cert-auto.o CC tls13/anti_replay-anti_replay.o CC tls13/compress-cert.o CC tls13/compress-cert-neg.o CC tls13/compress-cert-neg2.o CC tls13/compress-cert-cli.o CC tls13/hello_retry_request.o CC tls13/hello_retry_request_resume.o CC tls13/psk-ext.o CC tls13/key_update.o CC tls13/key_update_multiple.o CC tls13/key_limits.o CC tls13/multi-ocsp.o CC tls13/ocsp-client.o CC tls13/change_cipher_spec.o CCLD tls13-cipher-neg CC tls13/no-psk-exts.o CC tls13/psk-dumbfw.o CC tls13/psk-ke-modes.o CCLD tls13-early-start CC tls13/no-auto-send-ticket.o CCLD mini-record-2 CCLD simple CCLD gnutls_hmac_fast CCLD set_pkcs12_cred CCLD cert CCLD certuniqueid CCLD tls-neg-ext-key CCLD mpi CCLD certificate_set_x509_crl CCLD dn CCLD parse_ca CCLD x509-dn CCLD x509-dn-decode CCLD record-sizes CCLD hostname-check CCLD cve-2008-4989 CCLD pkcs12_s2k CCLD chainverify CCLD missingissuer CCLD missingissuer_aia CCLD record-sizes-range CCLD crq_key_id CCLD x509sign-verify CCLD sign-verify CCLD cve-2009-1415 CCLD cve-2009-1416 CCLD tls10-server-kx-neg CCLD tls11-server-kx-neg CCLD tls12-server-kx-neg CCLD ssl30-server-kx-neg CCLD tls12-cipher-neg CCLD tls11-cipher-neg CCLD tls10-cipher-neg CCLD ssl30-cipher-neg CCLD crq_apis CCLD init_roundtrip CCLD pkcs12_s2k_pem CCLD dn2 CCLD tls12-rehandshake-cert-3 CCLD nul-in-x509-names CCLD x509_altname CCLD pkcs12_encode CCLD mini-x509 CCLD gnutls_session_set_id CCLD rng-fork CCLD mini-eagain-dtls CCLD resume-dtls CCLD empty_retrieve_function CCLD tls13-rehandshake-cert CCLD gnutls_ext_raw_parse CCLD handshake-large-cert CCLD x509cert CCLD x509cert-tl CCLD x509cert-ct CCLD infoaccess rng-fork.c: In function 'doit': rng-fork.c:70:25: warning: leak of FILE 'fopen ("./rng-test", "w")' [CWE-775] [-Wanalyzer-file-leak] 70 | assert(gnutls_rnd(i, buf1, sizeof(buf1)) >= 0); | ^ 'doit': events 1-9 | | 63 | for (i = GNUTLS_RND_NONCE; i <= GNUTLS_RND_KEY; i++) { | | ^ | | | | | (1) following 'true' branch (when 'i_5 != 3')... | 64 | pid = fork(); | | ~ | | | | | (2) ...to here | 65 | if (pid == 0) { | | ~ | | | | | (3) following 'true' branch (when 'pid_16 == 0')... | 66 | fp = fopen(FILENAME, "w"); | | ~ ~ | | | | | | | (5) opened here | | (4) ...to here | 67 | if (fp == NULL) | | ~ | | | | | (6) assuming 'fopen ("./rng-test", "w")' is non-NULL | | (7) following 'false' branch... |...... | 70 | assert(gnutls_rnd(i, buf1, sizeof(buf1)) >= 0); | | ~ | | | | | (8) ...to here | | (9) 'fopen ("./rng-test", "w")' leaks here; was opened at (5) | CCLD mini-dtls-hello-verify CCLD sign-verify-ed25519-rfc8080 CCLD trustdb-tofu CCLD dtls-rehandshake-anon CCLD mini-alpn CCLD mini-dtls-large CCLD mini-termination CCLD mini-x509-cas CCLD mini-x509-2 CCLD pkcs12_simple CCLD tls-pthread CCLD mini-emsgsize-dtls CCLD chainverify-unsorted CCLD mini-overhead CCLD tls12-ffdhe CCLD mini-dtls-heartbeat CCLD mini-x509-callbacks CCLD key-openssl utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |mini-termination.c:315:6: | 315 | void doit(void) | | ^ | | | | | (1) entry to 'doit' | 316 | { | 317 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 306 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD priorities CCLD priorities-groups CCLD gnutls_x509_privkey_import CCLD gnutls_x509_crt_list_import utils.c: In function '_fail': CCLD time utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |mini-overhead.c:319:6: | 319 | void doit(void) | | ^ | | | | | (1) entry to 'doit' | 320 | { | 321 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 310 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD sign-verify-ext4 CCLD x509-server-verify CCLD tls-neg-ext4-key CCLD resume-lifetime CCLD mini-dtls-srtp CCLD rsa-encrypt-decrypt CCLD mini-loss-time CCLD gnutls-strcodes CCLD mini-record CCLD handshake-timeout CCLD mini-dtls-record CCLD mini-record-range CCLD cert-status CCLD fips-mode-pthread CCLD rsa-psk CCLD global-init CCLD sec-params CCLD sign-verify-data CCLD fips-test CCLD fips-override-test CCLD mini-global-load utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |mini-record-range.c:337:6: | 337 | void doit(void) | | ^ | | | | | (1) entry to 'doit' | 338 | { | 339 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 329 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD name-constraints CCLD x509-extensions CCLD long-session-id CCLD mini-x509-callbacks-intr CCLD mini-dtls-lowmtu CCLD set_x509_key_file-late CCLD crlverify CCLD mini-dtls-discard CCLD mini-record-failure CCLD openconnect-dtls12 CCLD tls12-rehandshake-cert-2 CCLD custom-urls utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |long-session-id.c:241:6: | 241 | void doit(void) | | ^ | | | | | (1) entry to 'doit' | 242 | { | 243 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 233 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD set_x509_key_mem utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |mini-dtls-lowmtu.c:333:6: | 333 | void doit(void) | | ^ | | | | | (1) entry to 'doit' | 334 | { | 335 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 325 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD set_x509_key_file CCLD tls12-rehandshake-cert-auto CCLD tls12-rehandshake-set-prio CCLD mini-chain-unsorted utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |custom-urls.c:273:6: | 273 | void doit(void) | | ^ | | | | | (1) entry to 'doit' | 274 | { | 275 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 265 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD x509-verify-with-crl CCLD mini-dtls-mtu CCLD privkey-verify-broken CCLD mini-dtls-record-asym CCLD key-import-export set_x509_key_file-late.c: In function 'set_cert': set_x509_key_file-late.c:53:9: warning: leak of FILE 'fopen (get_tmpname (0B), "w")' [CWE-775] [-Wanalyzer-file-leak] 53 | assert(fwrite(cert->data, 1, cert->size, fp)>0); | ^ 'handshake_hook_func': events 1-8 | | 67 | int handshake_hook_func(gnutls_session_t session, unsigned int htype, | | ^ | | | | | (1) entry to 'handshake_hook_func' |...... | 73 | assert(htype == GNUTLS_HANDSHAKE_CLIENT_HELLO); | | ~ | | | | | (2) following 'true' branch (when 'htype_5(D) == 1')... | 74 | assert(when == GNUTLS_HOOK_PRE); | | ~ | | | | | (3) ...to here | | (4) following 'true' branch (when 'when_8(D) == 0')... | 75 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 76 | | 77 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 78 | idx = set_cert(xcred, &server_ca3_key, &server_ca3_localhost6_cert_chain); | | ~ | | | | | (8) calling 'set_cert' from 'handshake_hook_func' | +--> 'set_cert': events 9-10 | | 42 | static unsigned set_cert(gnutls_certificate_credentials_t xcred, const gnutls_datum_t *key, const gnutls_datum_t *cert) | | ^ | | | | | (9) entry to 'set_cert' |...... | 48 | certfile = get_tmpname(NULL); | | ~ | | | | | (10) calling 'get_tmpname' from 'set_cert' | +--> 'get_tmpname': events 11-13 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (11) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (12) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (13) ...to here | <------+ | 'set_cert': events 14-19 | |set_x509_key_file-late.c:48:20: | 48 | certfile = get_tmpname(NULL); | | ^ | | | | | (14) returning to 'set_cert' from 'get_tmpname' | 49 | | 50 | fp = fopen(certfile, "w"); | | ~ | | | | | (15) opened here | 51 | if (fp == NULL) | | ~ | | | | | (16) assuming 'fopen (get_tmpname (0B), "w")' is non-NULL | | (17) following 'false' branch... | 52 | fail("error in fopen\n"); | 53 | assert(fwrite(cert->data, 1, cert->size, fp)>0); | | ~ | | | | | (18) ...to here | | (19) 'fopen (get_tmpname (0B), "w")' leaks here; was opened at (15) | set_x509_key_file-late.c:54:9: warning: leak of FILE 'fopen (get_tmpname (0B), "w")' [CWE-775] [-Wanalyzer-file-leak] 54 | assert(fwrite(key->data, 1, key->size, fp)>0); | ^ 'handshake_hook_func': events 1-8 | | 67 | int handshake_hook_func(gnutls_session_t session, unsigned int htype, | | ^ | | | | | (1) entry to 'handshake_hook_func' |...... | 73 | assert(htype == GNUTLS_HANDSHAKE_CLIENT_HELLO); | | ~ | | | | | (2) following 'true' branch (when 'htype_5(D) == 1')... | 74 | assert(when == GNUTLS_HOOK_PRE); | | ~ | | | | | (3) ...to here | | (4) following 'true' branch (when 'when_8(D) == 0')... | 75 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 76 | | 77 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 78 | idx = set_cert(xcred, &server_ca3_key, &server_ca3_localhost6_cert_chain); | | ~ | | | | | (8) calling 'set_cert' from 'handshake_hook_func' | +--> 'set_cert': events 9-10 | | 42 | static unsigned set_cert(gnutls_certificate_credentials_t xcred, const gnutls_datum_t *key, const gnutls_datum_t *cert) | | ^ | | | | | (9) entry to 'set_cert' |...... | 48 | certfile = get_tmpname(NULL); | | ~ | | | | | (10) calling 'get_tmpname' from 'set_cert' | +--> 'get_tmpname': events 11-13 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (11) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (12) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (13) ...to here | <------+ | 'set_cert': events 14-21 | |set_x509_key_file-late.c:48:20: | 48 | certfile = get_tmpname(NULL); | | ^ | | | | | (14) returning to 'set_cert' from 'get_tmpname' | 49 | | 50 | fp = fopen(certfile, "w"); | | ~ | | | | | (15) opened here | 51 | if (fp == NULL) | | ~ | | | | | (16) assuming 'fopen (get_tmpname (0B), "w")' is non-NULL | | (17) following 'false' branch... | 52 | fail("error in fopen\n"); | 53 | assert(fwrite(cert->data, 1, cert->size, fp)>0); | | ~ | | | | | (18) ...to here | | (19) following 'true' branch... | 54 | assert(fwrite(key->data, 1, key->size, fp)>0); | | ~ | | | | | (20) ...to here | | (21) 'fopen (get_tmpname (0B), "w")' leaks here; was opened at (15) | CCLD priority-set CCLD priority-set2 utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |mini-chain-unsorted.c:358:6: | 358 | void doit(void) | | ^ | | | | | (1) entry to 'doit' | 359 | { | 360 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 349 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD pubkey-import-export CCLD sign-is-secure CCLD spki CCLD spki-abstract CCLD rsa-rsa-pss CCLD mini-dtls-fork CCLD dtls-pthread CCLD mini-key-material CCLD x509cert-invalid CCLD tls-ext-register CCLD tls-supplemental CCLD mini-dtls0-9 CCLD duplicate-extensions CCLD record-retvals CCLD mini-server-name CCLD tls-etm CCLD tls-force-etm CCLD x509-cert-callback CCLD alerts CCLD client-sign-md5-rep CCLD tls12-invalid-key-exchanges CCLD session-rdn-read CCLD tls13-cert-key-exchange CCLD x509-cert-callback-ocsp utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |alerts.c:293:6: | 293 | void doit(void) | | ^ | | | | | (1) entry to 'doit' | 294 | { | 295 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 285 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ set_x509_key_file.c: In function 'set_cert': set_x509_key_file.c:79:9: warning: leak of FILE 'fopen (get_tmpname (0B), "w")' [CWE-775] [-Wanalyzer-file-leak] 79 | assert(fwrite(cert->data, 1, cert->size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-14 | |set_x509_key_file.c:118:6: | 118 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 127 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 128 | gnutls_global_set_time_function(mytime); | | ~ | | | | | (5) ...to here |...... | 134 | if (ret != GNUTLS_E_FILE_ERROR) | | ~ | | | | | (6) following 'false' branch... |...... | 137 | gnutls_certificate_free_credentials(xcred); | | ~ | | | | | (7) ...to here | 138 | | 139 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (8) following 'true' branch... | 140 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (9) ...to here | | (10) following 'true' branch... | 141 | | 142 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (11) ...to here |...... | 145 | if (ret < 0) | | ~ | | | | | (12) following 'false' branch... |...... | 148 | success("Testing store of certificates\n"); | | ~ | | | | | (13) ...to here | 149 | | 150 | idx = set_cert(xcred, &server_ca3_key, &server_ca3_localhost6_cert_chain); | | ~ | | | | | (14) calling 'set_cert' from 'doit' | +--> 'set_cert': events 15-16 | | 68 | static unsigned set_cert(gnutls_certificate_credentials_t xcred, const gnutls_datum_t *key, const gnutls_datum_t *cert) | | ^ | | | | | (15) entry to 'set_cert' |...... | 74 | certfile = get_tmpname(NULL); | | ~ | | | | | (16) calling 'get_tmpname' from 'set_cert' | +--> 'get_tmpname': events 17-19 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (17) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (18) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (19) ...to here | <------+ | 'set_cert': events 20-25 | |set_x509_key_file.c:74:20: | 74 | certfile = get_tmpname(NULL); | | ^ | | | | | (20) returning to 'set_cert' from 'get_tmpname' | 75 | | 76 | fp = fopen(certfile, "w"); | | ~ | | | | | (21) opened here | 77 | if (fp == NULL) | | ~ | | | | | (22) assuming 'fopen (get_tmpname (0B), "w")' is non-NULL | | (23) following 'false' branch... | 78 | fail("error in fopen\n"); | 79 | assert(fwrite(cert->data, 1, cert->size, fp)>0); | | ~ | | | | | (24) ...to here | | (25) 'fopen (get_tmpname (0B), "w")' leaks here; was opened at (21) | set_x509_key_file.c:80:9: warning: leak of FILE 'fopen (get_tmpname (0B), "w")' [CWE-775] [-Wanalyzer-file-leak] 80 | assert(fwrite(key->data, 1, key->size, fp)>0); | ^ CCLD gnutls_ocsp_resp_list_import2 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-14 | |set_x509_key_file.c:118:6: | 118 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 127 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 128 | gnutls_global_set_time_function(mytime); | | ~ | | | | | (5) ...to here |...... | 134 | if (ret != GNUTLS_E_FILE_ERROR) | | ~ | | | | | (6) following 'false' branch... |...... | 137 | gnutls_certificate_free_credentials(xcred); | | ~ | | | | | (7) ...to here | 138 | | 139 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (8) following 'true' branch... | 140 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (9) ...to here | | (10) following 'true' branch... | 141 | | 142 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (11) ...to here |...... | 145 | if (ret < 0) | | ~ | | | | | (12) following 'false' branch... |...... | 148 | success("Testing store of certificates\n"); | | ~ | | | | | (13) ...to here | 149 | | 150 | idx = set_cert(xcred, &server_ca3_key, &server_ca3_localhost6_cert_chain); | | ~ | | | | | (14) calling 'set_cert' from 'doit' | +--> 'set_cert': events 15-16 | | 68 | static unsigned set_cert(gnutls_certificate_credentials_t xcred, const gnutls_datum_t *key, const gnutls_datum_t *cert) | | ^ | | | | | (15) entry to 'set_cert' |...... | 74 | certfile = get_tmpname(NULL); | | ~ | | | | | (16) calling 'get_tmpname' from 'set_cert' | +--> 'get_tmpname': events 17-19 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (17) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (18) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (19) ...to here | <------+ | 'set_cert': events 20-27 | |set_x509_key_file.c:74:20: | 74 | certfile = get_tmpname(NULL); | | ^ | | | | | (20) returning to 'set_cert' from 'get_tmpname' | 75 | | 76 | fp = fopen(certfile, "w"); | | ~ | | | | | (21) opened here | 77 | if (fp == NULL) | | ~ | | | | | (22) assuming 'fopen (get_tmpname (0B), "w")' is non-NULL | | (23) following 'false' branch... | 78 | fail("error in fopen\n"); | 79 | assert(fwrite(cert->data, 1, cert->size, fp)>0); | | ~ | | | | | (24) ...to here | | (25) following 'true' branch... | 80 | assert(fwrite(key->data, 1, key->size, fp)>0); | | ~ | | | | | (26) ...to here | | (27) 'fopen (get_tmpname (0B), "w")' leaks here; was opened at (21) | CCLD server-sign-md5-rep CCLD privkey-keygen CCLD mini-tls-nonblock CCLD no-signal CCLD dtls-etm CCLD pkcs7-gen CCLD x509sign-verify-rsa CCLD x509sign-verify-ecdsa CCLD x509sign-verify-gost CCLD cipher-alignment utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |no-signal.c:235:6: | 235 | void doit(void) | | ^ | | | | | (1) entry to 'doit' | 236 | { | 237 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 227 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD oids CCLD atfork CCLD prf CCLD psk-file CCLD priority-init2 CCLD post-client-hello-change-prio CCLD status-request CCLD status-request-ok CCLD rfc7633-missing CCLD sign-verify-ext CCLD fallback-scsv CCLD pkcs8-key-decode CCLD urls CCLD dtls-rehandshake-cert CCLD rfc7633-ok CCLD key-usage-rsa CCLD key-usage-ecdhe-rsa CCLD mini-session-verify-function CCLD auto-verify CCLD record-timeouts CCLD mini-dtls-hello-verify-48 CCLD set-default-prio CCLD tls12-anon-upgrade CCLD tlsext-decoding CCLD rsa-psk-cb CCLD gnutls-ids CCLD rehandshake-switch-cert CCLD rehandshake-switch-cert-allow CCLD rehandshake-switch-cert-client CCLD rehandshake-switch-cert-client-allow CCLD handshake-versions CCLD dtls-handshake-versions CCLD dtls-max-record CCLD tls12-max-record CCLD alpn-server-prec CCLD ocsp-filename-memleak CCLD dh-params CCLD rehandshake-ext-secret CCLD pcert-list CCLD session-export-funcs CCLD handshake-false-start CCLD version-checks CCLD key-material-dtls CCLD key-material-set-dtls CCLD name-constraints-merge CCLD crl-basic CCLD crq-basic CCLD send-client-cert CCLD custom-urls-override CCLD hex CCLD rehandshake-switch-psk-id CCLD rehandshake-switch-srp-id CCLD base64 CCLD srpbase64 CCLD pkcs1-digest-info utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |custom-urls-override.c:274:6: | 274 | void doit(void) | | ^ | | | | | (1) entry to 'doit' | 275 | { | 276 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 266 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD set_x509_key CCLD set_x509_key_file_der CCLD set_x509_pkcs12_key CCLD crt_apis CCLD tls12-cert-key-exchange CCLD tls11-cert-key-exchange CCLD tls10-cert-key-exchange CCLD ssl30-cert-key-exchange CCLD dtls12-cert-key-exchange CCLD dtls10-cert-key-exchange CCLD x509-cert-callback-legacy CCLD keylog-env CCLD ssl2-hello CCLD tlsfeature-ext CCLD dtls-rehandshake-cert-2 CCLD dtls-session-ticket-lost set_x509_key_file_der.c: In function 'write_der': set_x509_key_file_der.c:72:9: warning: leak of FILE 'fopen (file_15(D), "wb")' [CWE-775] [-Wanalyzer-file-leak] 72 | assert(fwrite(der.data, 1, der.size, fp)>0); | ^ 'doit': events 1-8 | | 77 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 87 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (2) following 'true' branch... | 88 | | 89 | if (TMP_MAX < 2) | | ~ | | | | | (3) ...to here |...... | 92 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 93 | | 94 | ret = gnutls_certificate_set_x509_trust_mem(clicred, &ca2_cert, GNUTLS_X509_FMT_PEM); | | ~ | | | | | (5) ...to here | 95 | if (ret < 0) | | ~ | | | | | (6) following 'false' branch... |...... | 98 | assert(get_tmpname(certfile)!=NULL); | | ~ | | | | | (7) ...to here | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-13 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'false' branch... |...... | 292 | path = getenv("builddir"); | | ~ | | | | | (11) ...to here |...... | 296 | if (s == NULL) | | ~ | | | | | (12) following 'false' branch (when 's_22(D)' is non-NULL)... |...... | 299 | p = s; | | ~ | | | | | (13) ...to here | <------+ | 'doit': events 14-17 | |set_x509_key_file_der.c:98:9: | 98 | assert(get_tmpname(certfile)!=NULL); | | ^ | | | | | (14) returning to 'doit' from 'get_tmpname' | | (15) following 'true' branch... | 99 | assert(get_tmpname(keyfile)!=NULL); | | ~ | | | | | (16) ...to here | | (17) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 18-23 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (18) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... |...... | 292 | path = getenv("builddir"); | | ~ | | | | | (20) ...to here |...... | 296 | if (s == NULL) | | ~ | | | | | (21) following 'false' branch (when 's_22(D)' is non-NULL)... |...... | 299 | p = s; | | ~ | | | | | (22) ...to here |...... | 304 | append(p); | | ~ | | | | | (23) calling 'append' from 'get_tmpname' | +--> 'append': events 24-25 | | 265 | static void append(const char *file) | | ^ | | | | | (24) entry to 'append' |...... | 269 | if (temp_files == (void*)-1) | | ~ | | | | | (25) following 'true' branch... | 'append': event 26 | |lto1: | (26): ...to here | <------+ | 'get_tmpname': event 27 | | 304 | append(p); | | ^ | | | | | (27) returning to 'get_tmpname' from 'append' | <------+ | 'doit': events 28-31 | |set_x509_key_file_der.c:99:9: | 99 | assert(get_tmpname(keyfile)!=NULL); | | ^ | | | | | (28) returning to 'doit' from 'get_tmpname' | | (29) following 'true' branch... | 100 | | 101 | write_der(certfile, "CERTIFICATE", (char*)server2_cert_pem); | | ~ | | | | | (30) ...to here | | (31) calling 'write_der' from 'doit' | +--> 'write_der': events 32-39 | | 56 | static void write_der(const char *file, const char *header, const char *ipem) | | ^ | | | | | (32) entry to 'write_der' |...... | 64 | if (ret < 0) { | | ~ | | | | | (33) following 'false' branch... |...... | 68 | fp = fopen(file, "wb"); | | ~ ~ | | | | | | | (35) opened here | | (34) ...to here | 69 | if (fp == NULL) | | ~ | | | | | (36) assuming 'fopen (file_15(D), "wb")' is non-NULL | | (37) following 'false' branch... |...... | 72 | assert(fwrite(der.data, 1, der.size, fp)>0); | | ~ | | | | | (38) ...to here | | (39) 'fopen (file_15(D), "wb")' leaks here; was opened at (35) | CCLD tlsfeature-crt CCLD dtls-rehandshake-cert-3 CCLD resume-with-false-start set_x509_pkcs12_key.c: In function 'doit': set_x509_pkcs12_key.c:93:9: warning: leak of FILE 'fopen (get_tmpname (0B), "w")' [CWE-775] [-Wanalyzer-file-leak] 93 | assert(fwrite(server_ca3_pkcs12_pem, 1, strlen((char*)server_ca3_pkcs12_pem), fp)>0); | ^ 'doit': events 1-14 | | 56 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 65 | if (gnutls_fips140_mode_enabled()) { | | ~ | | | | | (2) following 'false' branch... |...... | 69 | global_init(); | | ~ | | | | | (3) ...to here | 70 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... |...... | 73 | ret = gnutls_certificate_set_x509_simple_pkcs12_file(xcred, certfile, | | ~ | | | | | (5) ...to here | 74 | GNUTLS_X509_FMT_PEM, "1234"); | 75 | if (ret != GNUTLS_E_FILE_ERROR) | | ~ | | | | | (6) following 'false' branch... |...... | 78 | gnutls_certificate_free_credentials(xcred); | | ~ | | | | | (7) ...to here | 79 | | 80 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (8) following 'true' branch... | 81 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (9) ...to here | | (10) following 'true' branch... | 82 | | 83 | ret = gnutls_certificate_set_x509_trust_mem(clicred, &ca3_cert, GNUTLS_X509_FMT_PEM); | | ~ | | | | | (11) ...to here | 84 | if (ret < 0) | | ~ | | | | | (12) following 'false' branch... |...... | 87 | certfile = get_tmpname(NULL); | | ~ ~ | | | | | | | (14) calling 'get_tmpname' from 'doit' | | (13) ...to here | +--> 'get_tmpname': events 15-17 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (15) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (16) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (17) ...to here | <------+ | 'doit': events 18-23 | |set_x509_pkcs12_key.c:87:20: | 87 | certfile = get_tmpname(NULL); | | ^ | | | | | (18) returning to 'doit' from 'get_tmpname' | 88 | | 89 | fp = fopen(certfile, "w"); | | ~ | | | | | (19) opened here | 90 | if (fp == NULL) | | ~ | | | | | (20) assuming 'fopen (get_tmpname (0B), "w")' is non-NULL | | (21) following 'false' branch... |...... | 93 | assert(fwrite(server_ca3_pkcs12_pem, 1, strlen((char*)server_ca3_pkcs12_pem), fp)>0); | | ~ | | | | | (22) ...to here | | (23) 'fopen (get_tmpname (0B), "w")' leaks here; was opened at (19) | CCLD set_x509_key_file_ocsp CCLD client-fastopen CCLD rng-sigint CCLD srp CCLD rng-pthread CC safe-renegotiation/srn0.o CC safe-renegotiation/srn1.o CC safe-renegotiation/srn2.o CC safe-renegotiation/srn3.o CC safe-renegotiation/srn4.o CC safe-renegotiation/srn5.o CCLD rsa-illegal-import CCLD set_key CCLD set_x509_ocsp_multi_invalid CCLD set_x509_key_file_ocsp_multi2 CCLD set_x509_ocsp_multi_unknown CCLD set_x509_ocsp_multi_pem CCLD tls-ext-not-in-dtls CCLD set_key_utf8 set_x509_key_file_ocsp.c: In function 'doit': set_x509_key_file_ocsp.c:312:9: warning: leak of FILE 'fopen (get_tmpname (&certname), "wb")' [CWE-775] [-Wanalyzer-file-leak] 312 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp.c:290:6: | 290 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 304 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 305 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 306 | | 307 | certfile = get_tmpname(certname); | | ~ ~ | | | | | | | (8) calling 'get_tmpname' from 'doit' | | (7) ...to here | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-17 | |set_x509_key_file_ocsp.c:307:20: | 307 | certfile = get_tmpname(certname); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' | 308 | | 309 | fp = fopen(certfile, "wb"); | | ~ | | | | | (13) opened here | 310 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname), "wb")' is non-NULL | | (15) following 'false' branch... | 311 | fail("error in fopen\n"); | 312 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) 'fopen (get_tmpname (&certname), "wb")' leaks here; was opened at (13) | set_x509_key_file_ocsp.c:313:9: warning: leak of FILE 'fopen (get_tmpname (&certname), "wb")' [CWE-775] [-Wanalyzer-file-leak] 313 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp.c:290:6: | 290 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 304 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 305 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 306 | | 307 | certfile = get_tmpname(certname); | | ~ ~ | | | | | | | (8) calling 'get_tmpname' from 'doit' | | (7) ...to here | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-19 | |set_x509_key_file_ocsp.c:307:20: | 307 | certfile = get_tmpname(certname); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' | 308 | | 309 | fp = fopen(certfile, "wb"); | | ~ | | | | | (13) opened here | 310 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname), "wb")' is non-NULL | | (15) following 'false' branch... | 311 | fail("error in fopen\n"); | 312 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 313 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (18) ...to here | | (19) 'fopen (get_tmpname (&certname), "wb")' leaks here; was opened at (13) | set_x509_key_file_ocsp.c:325:9: warning: leak of FILE 'fopen (get_tmpname (&certname), "wb")' [CWE-775] [-Wanalyzer-file-leak] 325 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp.c:290:6: | 290 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 304 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 305 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 306 | | 307 | certfile = get_tmpname(certname); | | ~ ~ | | | | | | | (8) calling 'get_tmpname' from 'doit' | | (7) ...to here | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-25 | |set_x509_key_file_ocsp.c:307:20: | 307 | certfile = get_tmpname(certname); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 310 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 311 | fail("error in fopen\n"); | 312 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 313 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 314 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 319 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... |...... | 322 | fp = fopen(certfile, "wb"); | | ~ ~ | | | | | | | (21) opened here | | (20) ...to here | 323 | if (fp == NULL) | | ~ | | | | | (22) assuming 'fopen (get_tmpname (&certname), "wb")' is non-NULL | | (23) following 'false' branch... | 324 | fail("error in fopen\n"); | 325 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (24) ...to here | | (25) 'fopen (get_tmpname (&certname), "wb")' leaks here; was opened at (21) | set_x509_key_file_ocsp.c:326:9: warning: leak of FILE 'fopen (get_tmpname (&certname), "wb")' [CWE-775] [-Wanalyzer-file-leak] 326 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp.c:290:6: | 290 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 304 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 305 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 306 | | 307 | certfile = get_tmpname(certname); | | ~ ~ | | | | | | | (8) calling 'get_tmpname' from 'doit' | | (7) ...to here | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-27 | |set_x509_key_file_ocsp.c:307:20: | 307 | certfile = get_tmpname(certname); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 310 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 311 | fail("error in fopen\n"); | 312 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 313 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 314 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 319 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... |...... | 322 | fp = fopen(certfile, "wb"); | | ~ ~ | | | | | | | (21) opened here | | (20) ...to here | 323 | if (fp == NULL) | | ~ | | | | | (22) assuming 'fopen (get_tmpname (&certname), "wb")' is non-NULL | | (23) following 'false' branch... | 324 | fail("error in fopen\n"); | 325 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (24) ...to here | | (25) following 'true' branch... | 326 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (26) ...to here | | (27) 'fopen (get_tmpname (&certname), "wb")' leaks here; was opened at (21) | set_x509_key_file_ocsp.c:336:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 336 | assert(fwrite(ocsp_resp1.data, 1, ocsp_resp1.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp.c:290:6: | 290 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 304 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 305 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 306 | | 307 | certfile = get_tmpname(certname); | | ~ ~ | | | | | | | (8) calling 'get_tmpname' from 'doit' | | (7) ...to here | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-27 | |set_x509_key_file_ocsp.c:307:20: | 307 | certfile = get_tmpname(certname); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 310 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 311 | fail("error in fopen\n"); | 312 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 313 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 314 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 319 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... |...... | 322 | fp = fopen(certfile, "wb"); | | ~ | | | | | (20) ...to here | 323 | if (fp == NULL) | | ~ | | | | | (21) following 'false' branch... | 324 | fail("error in fopen\n"); | 325 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (22) ...to here | | (23) following 'true' branch... | 326 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (24) ...to here | | (25) following 'true' branch... | 327 | fclose(fp); | | ~ | | | | | (26) ...to here |...... | 332 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (27) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 28-30 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (28) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (29) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (30) ...to here | <------+ | 'doit': events 31-36 | |set_x509_key_file_ocsp.c:332:21: | 332 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (31) returning to 'doit' from 'get_tmpname' | 333 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (32) opened here | 334 | if (fp == NULL) | | ~ | | | | | (33) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (34) following 'false' branch... | 335 | fail("error in fopen\n"); | 336 | assert(fwrite(ocsp_resp1.data, 1, ocsp_resp1.size, fp)>0); | | ~ | | | | | (35) ...to here | | (36) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (32) | CCLD set_x509_key_utf8 CCLD insecure_key CCLD handshake-large-packet CCLD client_dsa_key CCLD server_ecdsa_key CCLD tls-session-ext-register CCLD tls-session-supplemental utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'start': events 1-2 | |tls-ext-not-in-dtls.c:248:6: | 248 | void start(const char *name, int type) | | ^ | | | | | (1) entry to 'start' |...... | 254 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 239 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD multi-alerts CCLD naked-alerts CCLD pkcs7-cat-parse CCLD set_known_dh_params_x509 CCLD set_known_dh_params_anon CCLD set_known_dh_params_psk set_x509_key_file_ocsp_multi2.c: In function 'doit': set_x509_key_file_ocsp_multi2.c:137:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp_multi2.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-17 | |set_x509_key_file_ocsp_multi2.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 134 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 135 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | set_x509_key_file_ocsp_multi2.c:138:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp_multi2.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-19 | |set_x509_key_file_ocsp_multi2.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 134 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 135 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (18) ...to here | | (19) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | CCLD session-tickets-ok set_x509_key_file_ocsp_multi2.c:153:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 153 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp_multi2.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_key_file_ocsp_multi2.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 144 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 145 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 148 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-30 | |set_x509_key_file_ocsp_multi2.c:148:21: | 148 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 149 | | 150 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (26) opened here | 151 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (28) following 'false' branch... | 152 | fail("error in fopen\n"); | 153 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (26) | set_x509_key_file_ocsp_multi2.c:154:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 154 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp_multi2.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_key_file_ocsp_multi2.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 144 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 145 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 148 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-32 | |set_x509_key_file_ocsp_multi2.c:148:21: | 148 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 149 | | 150 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (26) opened here | 151 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (28) following 'false' branch... | 152 | fail("error in fopen\n"); | 153 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 154 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (31) ...to here | | (32) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (26) | set_x509_key_file_ocsp_multi2.c:166:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 166 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp_multi2.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_key_file_ocsp_multi2.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 144 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 145 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 148 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-38 | |set_x509_key_file_ocsp_multi2.c:148:21: | 148 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 151 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 152 | fail("error in fopen\n"); | 153 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 154 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 155 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 159 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 160 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 161 | index2 = ret; | | ~ | | | | | (33) ...to here | 162 | | 163 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (34) opened here | 164 | if (fp == NULL) | | ~ | | | | | (35) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (36) following 'false' branch... | 165 | fail("error in fopen\n"); | 166 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (34) | set_x509_key_file_ocsp_multi2.c:167:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 167 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp_multi2.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_key_file_ocsp_multi2.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 144 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 145 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 148 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_key_file_ocsp_multi2.c:148:21: | 148 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 151 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 152 | fail("error in fopen\n"); | 153 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 154 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 155 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 159 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 160 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 161 | index2 = ret; | | ~ | | | | | (33) ...to here | 162 | | 163 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (34) opened here | 164 | if (fp == NULL) | | ~ | | | | | (35) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (36) following 'false' branch... | 165 | fail("error in fopen\n"); | 166 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 167 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (39) ...to here | | (40) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (34) | set_x509_key_file_ocsp_multi2.c:176:9: warning: leak of FILE 'fopen (get_tmpname (&certname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 176 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp_multi2.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_key_file_ocsp_multi2.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 144 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 145 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 148 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_key_file_ocsp_multi2.c:148:21: | 148 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 151 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 152 | fail("error in fopen\n"); | 153 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 154 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 155 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 159 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 160 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 161 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 164 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 165 | fail("error in fopen\n"); | 166 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 167 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 168 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 171 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-49 | |set_x509_key_file_ocsp_multi2.c:171:21: | 171 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' | 172 | | 173 | fp = fopen(certfile3, "wb"); | | ~ | | | | | (45) opened here | 174 | if (fp == NULL) | | ~ | | | | | (46) assuming 'fopen (get_tmpname (&certname3), "wb")' is non-NULL | | (47) following 'false' branch... | 175 | fail("error in fopen\n"); | 176 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (48) ...to here | | (49) 'fopen (get_tmpname (&certname3), "wb")' leaks here; was opened at (45) | set_x509_key_file_ocsp_multi2.c:177:9: warning: leak of FILE 'fopen (get_tmpname (&certname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 177 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp_multi2.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_key_file_ocsp_multi2.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 144 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 145 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 148 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_key_file_ocsp_multi2.c:148:21: | 148 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 151 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 152 | fail("error in fopen\n"); | 153 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 154 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 155 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 159 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 160 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 161 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 164 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 165 | fail("error in fopen\n"); | 166 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 167 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 168 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 171 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-51 | |set_x509_key_file_ocsp_multi2.c:171:21: | 171 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' | 172 | | 173 | fp = fopen(certfile3, "wb"); | | ~ | | | | | (45) opened here | 174 | if (fp == NULL) | | ~ | | | | | (46) assuming 'fopen (get_tmpname (&certname3), "wb")' is non-NULL | | (47) following 'false' branch... | 175 | fail("error in fopen\n"); | 176 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (48) ...to here | | (49) following 'true' branch... | 177 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | | ~ | | | | | (50) ...to here | | (51) 'fopen (get_tmpname (&certname3), "wb")' leaks here; was opened at (45) | set_x509_key_file_ocsp_multi2.c:189:9: warning: leak of FILE 'fopen (get_tmpname (&certname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 189 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | ^ CCLD session-tickets-missing 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp_multi2.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_key_file_ocsp_multi2.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 144 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 145 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 148 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_key_file_ocsp_multi2.c:148:21: | 148 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 151 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 152 | fail("error in fopen\n"); | 153 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 154 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 155 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 159 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 160 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 161 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 164 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 165 | fail("error in fopen\n"); | 166 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 167 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 168 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 171 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-57 | |set_x509_key_file_ocsp_multi2.c:171:21: | 171 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' |...... | 174 | if (fp == NULL) | | ~ | | | | | (45) following 'false' branch... | 175 | fail("error in fopen\n"); | 176 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (46) ...to here | | (47) following 'true' branch... | 177 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | | ~ | | | | | (48) ...to here | | (49) following 'true' branch... | 178 | fclose(fp); | | ~ | | | | | (50) ...to here |...... | 182 | if (ret < 0) | | ~ | | | | | (51) following 'false' branch... | 183 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 184 | index3 = ret; | | ~ | | | | | (52) ...to here | 185 | | 186 | fp = fopen(certfile3, "wb"); | | ~ | | | | | (53) opened here | 187 | if (fp == NULL) | | ~ | | | | | (54) assuming 'fopen (get_tmpname (&certname3), "wb")' is non-NULL | | (55) following 'false' branch... | 188 | fail("error in fopen\n"); | 189 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (56) ...to here | | (57) 'fopen (get_tmpname (&certname3), "wb")' leaks here; was opened at (53) | set_x509_key_file_ocsp_multi2.c:190:9: warning: leak of FILE 'fopen (get_tmpname (&certname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 190 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ CCLD set_x509_key_file_legacy 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_key_file_ocsp_multi2.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_key_file_ocsp_multi2.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 144 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 145 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 148 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_key_file_ocsp_multi2.c:148:21: | 148 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 151 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 152 | fail("error in fopen\n"); | 153 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 154 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 155 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 159 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 160 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 161 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 164 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 165 | fail("error in fopen\n"); | 166 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 167 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 168 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 171 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-59 | |set_x509_key_file_ocsp_multi2.c:171:21: | 171 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' |...... | 174 | if (fp == NULL) | | ~ | | | | | (45) following 'false' branch... | 175 | fail("error in fopen\n"); | 176 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (46) ...to here | | (47) following 'true' branch... | 177 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | | ~ | | | | | (48) ...to here | | (49) following 'true' branch... | 178 | fclose(fp); | | ~ | | | | | (50) ...to here |...... | 182 | if (ret < 0) | | ~ | | | | | (51) following 'false' branch... | 183 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 184 | index3 = ret; | | ~ | | | | | (52) ...to here | 185 | | 186 | fp = fopen(certfile3, "wb"); | | ~ | | | | | (53) opened here | 187 | if (fp == NULL) | | ~ | | | | | (54) assuming 'fopen (get_tmpname (&certname3), "wb")' is non-NULL | | (55) following 'false' branch... | 188 | fail("error in fopen\n"); | 189 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (56) ...to here | | (57) following 'true' branch... | 190 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (58) ...to here | | (59) 'fopen (get_tmpname (&certname3), "wb")' leaks here; was opened at (53) | CCLD status-request-ext CCLD gnutls_x509_crt_sign CCLD gnutls_x509_crq_sign set_x509_ocsp_multi_pem.c: In function 'doit': set_x509_ocsp_multi_pem.c:129:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 129 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_pem.c:99:6: | 99 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 118 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 119 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 120 | | 121 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 122 | | 123 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-17 | |set_x509_ocsp_multi_pem.c:123:21: | 123 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 126 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 127 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 128 | fail("error in fopen\n"); | 129 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | set_x509_ocsp_multi_pem.c:130:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 130 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_pem.c:99:6: | 99 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 118 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 119 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 120 | | 121 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 122 | | 123 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-19 | |set_x509_ocsp_multi_pem.c:123:21: | 123 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 126 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 127 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 128 | fail("error in fopen\n"); | 129 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 130 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (18) ...to here | | (19) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | set_x509_ocsp_multi_pem.c:144:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 144 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_pem.c:99:6: | 99 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 118 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 119 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 120 | | 121 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 122 | | 123 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_pem.c:123:21: | 123 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 127 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 128 | fail("error in fopen\n"); | 129 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 130 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 131 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 135 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 136 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 137 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 140 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-30 | |set_x509_ocsp_multi_pem.c:140:21: | 140 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 141 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (26) opened here | 142 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (28) following 'false' branch... | 143 | fail("error in fopen\n"); | 144 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (29) ...to here | | (30) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (26) | set_x509_ocsp_multi_pem.c:145:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 145 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_pem.c:99:6: | 99 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 118 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 119 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 120 | | 121 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 122 | | 123 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_pem.c:123:21: | 123 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 127 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 128 | fail("error in fopen\n"); | 129 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 130 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 131 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 135 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 136 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 137 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 140 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-32 | |set_x509_ocsp_multi_pem.c:140:21: | 140 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 141 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (26) opened here | 142 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (28) following 'false' branch... | 143 | fail("error in fopen\n"); | 144 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 145 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | | ~ | | | | | (31) ...to here | | (32) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (26) | set_x509_ocsp_multi_pem.c:146:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 146 | assert(fwrite(ocsp_ca3_localhost6_unknown_pem.data, 1, ocsp_ca3_localhost6_unknown_pem.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_pem.c:99:6: | 99 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 118 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 119 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 120 | | 121 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 122 | | 123 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_pem.c:123:21: | 123 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 127 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 128 | fail("error in fopen\n"); | 129 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 130 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 131 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 135 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 136 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 137 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 140 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-34 | |set_x509_ocsp_multi_pem.c:140:21: | 140 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 141 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (26) opened here | 142 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (28) following 'false' branch... | 143 | fail("error in fopen\n"); | 144 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 145 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | | ~ | | | | | (31) ...to here | | (32) following 'true' branch... | 146 | assert(fwrite(ocsp_ca3_localhost6_unknown_pem.data, 1, ocsp_ca3_localhost6_unknown_pem.size, fp)>0); | | ~ | | | | | (33) ...to here | | (34) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (26) | set_x509_ocsp_multi_pem.c:159:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 159 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_pem.c:99:6: | 99 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 118 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 119 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 120 | | 121 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 122 | | 123 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_pem.c:123:21: | 123 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 127 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 128 | fail("error in fopen\n"); | 129 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 130 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 131 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 135 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 136 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 137 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 140 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_ocsp_multi_pem.c:140:21: | 140 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 141 | fp = fopen(ocspfile1, "wb"); | 142 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 143 | fail("error in fopen\n"); | 144 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 145 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 146 | assert(fwrite(ocsp_ca3_localhost6_unknown_pem.data, 1, ocsp_ca3_localhost6_unknown_pem.size, fp)>0); | | ~ | | | | | (31) ...to here | | (32) following 'true' branch... | 147 | fclose(fp); | | ~ | | | | | (33) ...to here |...... | 151 | if (ret != GNUTLS_E_OCSP_MISMATCH_WITH_CERTS) | | ~ | | | | | (34) following 'false' branch... |...... | 155 | remove(ocspfile1); | | ~ | | | | | (35) ...to here | 156 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (36) opened here | 157 | if (fp == NULL) | | ~ | | | | | (37) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (38) following 'false' branch... | 158 | fail("error in fopen\n"); | 159 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (39) ...to here | | (40) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (36) | set_x509_ocsp_multi_pem.c:160:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 160 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_pem.c:99:6: | 99 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 118 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 119 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 120 | | 121 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 122 | | 123 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_pem.c:123:21: | 123 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 127 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 128 | fail("error in fopen\n"); | 129 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 130 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 131 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 135 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 136 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 137 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 140 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-42 | |set_x509_ocsp_multi_pem.c:140:21: | 140 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 141 | fp = fopen(ocspfile1, "wb"); | 142 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 143 | fail("error in fopen\n"); | 144 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 145 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 146 | assert(fwrite(ocsp_ca3_localhost6_unknown_pem.data, 1, ocsp_ca3_localhost6_unknown_pem.size, fp)>0); | | ~ | | | | | (31) ...to here | | (32) following 'true' branch... | 147 | fclose(fp); | | ~ | | | | | (33) ...to here |...... | 151 | if (ret != GNUTLS_E_OCSP_MISMATCH_WITH_CERTS) | | ~ | | | | | (34) following 'false' branch... |...... | 155 | remove(ocspfile1); | | ~ | | | | | (35) ...to here | 156 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (36) opened here | 157 | if (fp == NULL) | | ~ | | | | | (37) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (38) following 'false' branch... | 158 | fail("error in fopen\n"); | 159 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (39) ...to here | | (40) following 'true' branch... | 160 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | | ~ | | | | | (41) ...to here | | (42) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (36) | CCLD dtls-repro-20170915 CCLD rng-no-onload set_x509_ocsp_multi_unknown.c: In function 'doit': set_x509_ocsp_multi_unknown.c:123:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 123 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_unknown.c:89:6: | 89 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 112 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 113 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 114 | | 115 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 118 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-17 | |set_x509_ocsp_multi_unknown.c:118:21: | 118 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' | 119 | | 120 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 121 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 122 | fail("error in fopen\n"); | 123 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | set_x509_ocsp_multi_unknown.c:124:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 124 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_unknown.c:89:6: | 89 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 112 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 113 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 114 | | 115 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 118 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-19 | |set_x509_ocsp_multi_unknown.c:118:21: | 118 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' | 119 | | 120 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 121 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 122 | fail("error in fopen\n"); | 123 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 124 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (18) ...to here | | (19) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | set_x509_ocsp_multi_unknown.c:139:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 139 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_unknown.c:89:6: | 89 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 112 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 113 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 114 | | 115 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 118 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_unknown.c:118:21: | 118 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 121 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 122 | fail("error in fopen\n"); | 123 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 124 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 125 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 129 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 130 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 131 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 134 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-30 | |set_x509_ocsp_multi_unknown.c:134:21: | 134 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 135 | | 136 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (26) opened here | 137 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (28) following 'false' branch... | 138 | fail("error in fopen\n"); | 139 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (26) | set_x509_ocsp_multi_unknown.c:140:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 140 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_unknown.c:89:6: | 89 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 112 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 113 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 114 | | 115 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 118 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_unknown.c:118:21: | 118 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 121 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 122 | fail("error in fopen\n"); | 123 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 124 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 125 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 129 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 130 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 131 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 134 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-32 | |set_x509_ocsp_multi_unknown.c:134:21: | 134 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 135 | | 136 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (26) opened here | 137 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (28) following 'false' branch... | 138 | fail("error in fopen\n"); | 139 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 140 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (31) ...to here | | (32) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (26) | set_x509_ocsp_multi_unknown.c:155:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 155 | assert(fwrite(ocsp_ca3_localhost_unknown.data, 1, ocsp_ca3_localhost_unknown.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_unknown.c:89:6: | 89 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 112 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 113 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 114 | | 115 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 118 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_unknown.c:118:21: | 118 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 121 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 122 | fail("error in fopen\n"); | 123 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 124 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 125 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 129 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 130 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 131 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 134 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-34 | |set_x509_ocsp_multi_unknown.c:134:21: | 134 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 137 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 138 | fail("error in fopen\n"); | 139 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 140 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 141 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 145 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 146 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 147 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 151 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (34) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 35-37 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (35) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (36) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (37) ...to here | <------+ | 'doit': events 38-43 | |set_x509_ocsp_multi_unknown.c:151:21: | 151 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (38) returning to 'doit' from 'get_tmpname' | 152 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (39) opened here | 153 | if (fp == NULL) | | ~ | | | | | (40) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (41) following 'false' branch... | 154 | fail("error in fopen\n"); | 155 | assert(fwrite(ocsp_ca3_localhost_unknown.data, 1, ocsp_ca3_localhost_unknown.size, fp)>0); | | ~ | | | | | (42) ...to here | | (43) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (39) | set_x509_ocsp_multi_unknown.c:167:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 167 | assert(fwrite(ocsp_ca3_localhost6_unknown.data, 1, ocsp_ca3_localhost6_unknown.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_unknown.c:89:6: | 89 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 112 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 113 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 114 | | 115 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 118 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_unknown.c:118:21: | 118 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 121 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 122 | fail("error in fopen\n"); | 123 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 124 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 125 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 129 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 130 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 131 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 134 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-34 | |set_x509_ocsp_multi_unknown.c:134:21: | 134 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 137 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 138 | fail("error in fopen\n"); | 139 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 140 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 141 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 145 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 146 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 147 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 151 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (34) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 35-37 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (35) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (36) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (37) ...to here | <------+ | 'doit': events 38-45 | |set_x509_ocsp_multi_unknown.c:151:21: | 151 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (38) returning to 'doit' from 'get_tmpname' | 152 | fp = fopen(ocspfile1, "wb"); | 153 | if (fp == NULL) | | ~ | | | | | (39) following 'false' branch... | 154 | fail("error in fopen\n"); | 155 | assert(fwrite(ocsp_ca3_localhost_unknown.data, 1, ocsp_ca3_localhost_unknown.size, fp)>0); | | ~ | | | | | (40) ...to here | | (41) following 'true' branch... | 156 | fclose(fp); | | ~ | | | | | (42) ...to here |...... | 159 | if (ret < 0) | | ~ | | | | | (43) following 'false' branch... |...... | 163 | ocspfile2 = get_tmpname(ocspname2); | | ~ ~ | | | | | | | (45) calling 'get_tmpname' from 'doit' | | (44) ...to here | +--> 'get_tmpname': events 46-48 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (46) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (47) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (48) ...to here | <------+ | 'doit': events 49-54 | |set_x509_ocsp_multi_unknown.c:163:21: | 163 | ocspfile2 = get_tmpname(ocspname2); | | ^ | | | | | (49) returning to 'doit' from 'get_tmpname' | 164 | fp = fopen(ocspfile2, "wb"); | | ~ | | | | | (50) opened here | 165 | if (fp == NULL) | | ~ | | | | | (51) assuming 'fopen (get_tmpname (&ocspname2), "wb")' is non-NULL | | (52) following 'false' branch... | 166 | fail("error in fopen\n"); | 167 | assert(fwrite(ocsp_ca3_localhost6_unknown.data, 1, ocsp_ca3_localhost6_unknown.size, fp)>0); | | ~ | | | | | (53) ...to here | | (54) 'fopen (get_tmpname (&ocspname2), "wb")' leaks here; was opened at (50) | set_x509_ocsp_multi_unknown.c:179:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 179 | assert(fwrite(ocsp_ca3_localhost_unknown_sha1.data, 1, ocsp_ca3_localhost_unknown_sha1.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_unknown.c:89:6: | 89 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 112 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 113 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 114 | | 115 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 118 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_unknown.c:118:21: | 118 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 121 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 122 | fail("error in fopen\n"); | 123 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 124 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 125 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 129 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 130 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 131 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 134 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-34 | |set_x509_ocsp_multi_unknown.c:134:21: | 134 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 137 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 138 | fail("error in fopen\n"); | 139 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 140 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 141 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 145 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 146 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 147 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 151 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (34) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 35-37 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (35) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (36) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (37) ...to here | <------+ | 'doit': events 38-45 | |set_x509_ocsp_multi_unknown.c:151:21: | 151 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (38) returning to 'doit' from 'get_tmpname' | 152 | fp = fopen(ocspfile1, "wb"); | 153 | if (fp == NULL) | | ~ | | | | | (39) following 'false' branch... | 154 | fail("error in fopen\n"); | 155 | assert(fwrite(ocsp_ca3_localhost_unknown.data, 1, ocsp_ca3_localhost_unknown.size, fp)>0); | | ~ | | | | | (40) ...to here | | (41) following 'true' branch... | 156 | fclose(fp); | | ~ | | | | | (42) ...to here |...... | 159 | if (ret < 0) | | ~ | | | | | (43) following 'false' branch... |...... | 163 | ocspfile2 = get_tmpname(ocspname2); | | ~ ~ | | | | | | | (45) calling 'get_tmpname' from 'doit' | | (44) ...to here | +--> 'get_tmpname': events 46-48 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (46) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (47) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (48) ...to here | <------+ | 'doit': events 49-56 | |set_x509_ocsp_multi_unknown.c:163:21: | 163 | ocspfile2 = get_tmpname(ocspname2); | | ^ | | | | | (49) returning to 'doit' from 'get_tmpname' | 164 | fp = fopen(ocspfile2, "wb"); | 165 | if (fp == NULL) | | ~ | | | | | (50) following 'false' branch... | 166 | fail("error in fopen\n"); | 167 | assert(fwrite(ocsp_ca3_localhost6_unknown.data, 1, ocsp_ca3_localhost6_unknown.size, fp)>0); | | ~ | | | | | (51) ...to here | | (52) following 'true' branch... | 168 | fclose(fp); | | ~ | | | | | (53) ...to here |...... | 171 | if (ret < 0) | | ~ | | | | | (54) following 'false' branch... |...... | 175 | ocspfile3 = get_tmpname(ocspname3); | | ~ ~ | | | | | | | (56) calling 'get_tmpname' from 'doit' | | (55) ...to here | +--> 'get_tmpname': events 57-59 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (57) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (58) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (59) ...to here | <------+ | 'doit': events 60-65 | |set_x509_ocsp_multi_unknown.c:175:21: | 175 | ocspfile3 = get_tmpname(ocspname3); | | ^ | | | | | (60) returning to 'doit' from 'get_tmpname' | 176 | fp = fopen(ocspfile3, "wb"); | | ~ | | | | | (61) opened here | 177 | if (fp == NULL) | | ~ | | | | | (62) assuming 'fopen (get_tmpname (&ocspname3), "wb")' is non-NULL | | (63) following 'false' branch... | 178 | fail("error in fopen\n"); | 179 | assert(fwrite(ocsp_ca3_localhost_unknown_sha1.data, 1, ocsp_ca3_localhost_unknown_sha1.size, fp)>0); | | ~ | | | | | (64) ...to here | | (65) 'fopen (get_tmpname (&ocspname3), "wb")' leaks here; was opened at (61) | CCLD dtls1-2-mtu-check set_x509_ocsp_multi_unknown.c:199:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 199 | assert(fwrite(ocsp_subca3_unknown.data, 1, ocsp_subca3_unknown.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_unknown.c:89:6: | 89 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 112 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 113 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 114 | | 115 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 118 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_unknown.c:118:21: | 118 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 121 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 122 | fail("error in fopen\n"); | 123 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 124 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 125 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 129 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 130 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 131 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 134 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-34 | |set_x509_ocsp_multi_unknown.c:134:21: | 134 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 137 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 138 | fail("error in fopen\n"); | 139 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 140 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 141 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 145 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 146 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 147 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 151 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (34) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 35-37 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (35) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (36) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (37) ...to here | <------+ | 'doit': events 38-45 | |set_x509_ocsp_multi_unknown.c:151:21: | 151 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (38) returning to 'doit' from 'get_tmpname' | 152 | fp = fopen(ocspfile1, "wb"); | 153 | if (fp == NULL) | | ~ | | | | | (39) following 'false' branch... | 154 | fail("error in fopen\n"); | 155 | assert(fwrite(ocsp_ca3_localhost_unknown.data, 1, ocsp_ca3_localhost_unknown.size, fp)>0); | | ~ | | | | | (40) ...to here | | (41) following 'true' branch... | 156 | fclose(fp); | | ~ | | | | | (42) ...to here |...... | 159 | if (ret < 0) | | ~ | | | | | (43) following 'false' branch... |...... | 163 | ocspfile2 = get_tmpname(ocspname2); | | ~ ~ | | | | | | | (45) calling 'get_tmpname' from 'doit' | | (44) ...to here | +--> 'get_tmpname': events 46-48 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (46) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (47) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (48) ...to here | <------+ | 'doit': events 49-56 | |set_x509_ocsp_multi_unknown.c:163:21: | 163 | ocspfile2 = get_tmpname(ocspname2); | | ^ | | | | | (49) returning to 'doit' from 'get_tmpname' | 164 | fp = fopen(ocspfile2, "wb"); | 165 | if (fp == NULL) | | ~ | | | | | (50) following 'false' branch... | 166 | fail("error in fopen\n"); | 167 | assert(fwrite(ocsp_ca3_localhost6_unknown.data, 1, ocsp_ca3_localhost6_unknown.size, fp)>0); | | ~ | | | | | (51) ...to here | | (52) following 'true' branch... | 168 | fclose(fp); | | ~ | | | | | (53) ...to here |...... | 171 | if (ret < 0) | | ~ | | | | | (54) following 'false' branch... |...... | 175 | ocspfile3 = get_tmpname(ocspname3); | | ~ ~ | | | | | | | (56) calling 'get_tmpname' from 'doit' | | (55) ...to here | +--> 'get_tmpname': events 57-59 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (57) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (58) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (59) ...to here | <------+ | 'doit': events 60-75 | |set_x509_ocsp_multi_unknown.c:175:21: | 175 | ocspfile3 = get_tmpname(ocspname3); | | ^ | | | | | (60) returning to 'doit' from 'get_tmpname' | 176 | fp = fopen(ocspfile3, "wb"); | 177 | if (fp == NULL) | | ~ | | | | | (61) following 'false' branch... | 178 | fail("error in fopen\n"); | 179 | assert(fwrite(ocsp_ca3_localhost_unknown_sha1.data, 1, ocsp_ca3_localhost_unknown_sha1.size, fp)>0); | | ~ | | | | | (62) ...to here | | (63) following 'true' branch... | 180 | fclose(fp); | | ~ | | | | | (64) ...to here |...... | 183 | if (ret != 0) | | ~ | | | | | (65) following 'false' branch... |...... | 186 | ret = gnutls_certificate_set_ocsp_status_request_file(xcred, ocspfile3, index2); | | ~ | | | | | (66) ...to here | 187 | if (ret != GNUTLS_E_OCSP_MISMATCH_WITH_CERTS) | | ~ | | | | | (67) following 'false' branch... |...... | 191 | ret = gnutls_certificate_set_ocsp_status_request_file(xcred, ocspfile1, index1); | | ~ | | | | | (68) ...to here | 192 | if (ret < 0) | | ~ | | | | | (69) following 'false' branch... |...... | 196 | fp = fopen(ocspfile3, "wb"); | | ~ ~ | | | | | | | (71) opened here | | (70) ...to here | 197 | if (fp == NULL) | | ~ | | | | | (72) assuming 'fopen (get_tmpname (&ocspname3), "wb")' is non-NULL | | (73) following 'false' branch... | 198 | fail("error in fopen\n"); | 199 | assert(fwrite(ocsp_subca3_unknown.data, 1, ocsp_subca3_unknown.size, fp)>0); | | ~ | | | | | (74) ...to here | | (75) 'fopen (get_tmpname (&ocspname3), "wb")' leaks here; was opened at (71) | CCLD crl_apis CCLD cert_verify_inv_utf8 CCLD no-extensions CCLD hostname-check-utf8 CCLD pkcs8-key-decode-encrypted CCLD priority-mix CCLD pkcs7 CCLD send-data-before-handshake CCLD recv-data-before-handshake CCLD crt_inv_write set_x509_ocsp_multi_invalid.c: In function 'doit': set_x509_ocsp_multi_invalid.c:125:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-17 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 122 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 123 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | set_x509_ocsp_multi_invalid.c:126:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-19 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 122 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 123 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (18) ...to here | | (19) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | set_x509_ocsp_multi_invalid.c:141:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-30 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 137 | | 138 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (26) opened here | 139 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (28) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (26) | set_x509_ocsp_multi_invalid.c:142:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-32 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 137 | | 138 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (26) opened here | 139 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (28) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (31) ...to here | | (32) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (26) | set_x509_ocsp_multi_invalid.c:154:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 154 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-38 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 148 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 149 | index2 = ret; | | ~ | | | | | (33) ...to here | 150 | | 151 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (34) opened here | 152 | if (fp == NULL) | | ~ | | | | | (35) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (36) following 'false' branch... | 153 | fail("error in fopen\n"); | 154 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (34) | set_x509_ocsp_multi_invalid.c:155:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 155 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 148 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 149 | index2 = ret; | | ~ | | | | | (33) ...to here | 150 | | 151 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (34) opened here | 152 | if (fp == NULL) | | ~ | | | | | (35) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (36) following 'false' branch... | 153 | fail("error in fopen\n"); | 154 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 155 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (39) ...to here | | (40) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (34) | set_x509_ocsp_multi_invalid.c:164:9: warning: leak of FILE 'fopen (get_tmpname (&certname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 164 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 148 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 149 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 152 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 153 | fail("error in fopen\n"); | 154 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 155 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 156 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 159 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-49 | |set_x509_ocsp_multi_invalid.c:159:21: | 159 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' | 160 | | 161 | fp = fopen(certfile3, "wb"); | | ~ | | | | | (45) opened here | 162 | if (fp == NULL) | | ~ | | | | | (46) assuming 'fopen (get_tmpname (&certname3), "wb")' is non-NULL | | (47) following 'false' branch... | 163 | fail("error in fopen\n"); | 164 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (48) ...to here | | (49) 'fopen (get_tmpname (&certname3), "wb")' leaks here; was opened at (45) | set_x509_ocsp_multi_invalid.c:165:9: warning: leak of FILE 'fopen (get_tmpname (&certname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 165 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 148 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 149 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 152 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 153 | fail("error in fopen\n"); | 154 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 155 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 156 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 159 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-51 | |set_x509_ocsp_multi_invalid.c:159:21: | 159 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' | 160 | | 161 | fp = fopen(certfile3, "wb"); | | ~ | | | | | (45) opened here | 162 | if (fp == NULL) | | ~ | | | | | (46) assuming 'fopen (get_tmpname (&certname3), "wb")' is non-NULL | | (47) following 'false' branch... | 163 | fail("error in fopen\n"); | 164 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (48) ...to here | | (49) following 'true' branch... | 165 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | | ~ | | | | | (50) ...to here | | (51) 'fopen (get_tmpname (&certname3), "wb")' leaks here; was opened at (45) | set_x509_ocsp_multi_invalid.c:177:9: warning: leak of FILE 'fopen (get_tmpname (&certname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 177 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 148 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 149 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 152 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 153 | fail("error in fopen\n"); | 154 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 155 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 156 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 159 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-57 | |set_x509_ocsp_multi_invalid.c:159:21: | 159 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' |...... | 162 | if (fp == NULL) | | ~ | | | | | (45) following 'false' branch... | 163 | fail("error in fopen\n"); | 164 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (46) ...to here | | (47) following 'true' branch... | 165 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | | ~ | | | | | (48) ...to here | | (49) following 'true' branch... | 166 | fclose(fp); | | ~ | | | | | (50) ...to here |...... | 170 | if (ret < 0) | | ~ | | | | | (51) following 'false' branch... | 171 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 172 | index3 = ret; | | ~ | | | | | (52) ...to here | 173 | | 174 | fp = fopen(certfile3, "wb"); | | ~ | | | | | (53) opened here | 175 | if (fp == NULL) | | ~ | | | | | (54) assuming 'fopen (get_tmpname (&certname3), "wb")' is non-NULL | | (55) following 'false' branch... | 176 | fail("error in fopen\n"); | 177 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (56) ...to here | | (57) 'fopen (get_tmpname (&certname3), "wb")' leaks here; was opened at (53) | CCLD x509sign-verify-error set_x509_ocsp_multi_invalid.c:178:9: warning: leak of FILE 'fopen (get_tmpname (&certname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 178 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 148 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 149 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 152 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 153 | fail("error in fopen\n"); | 154 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 155 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 156 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 159 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-59 | |set_x509_ocsp_multi_invalid.c:159:21: | 159 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' |...... | 162 | if (fp == NULL) | | ~ | | | | | (45) following 'false' branch... | 163 | fail("error in fopen\n"); | 164 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (46) ...to here | | (47) following 'true' branch... | 165 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | | ~ | | | | | (48) ...to here | | (49) following 'true' branch... | 166 | fclose(fp); | | ~ | | | | | (50) ...to here |...... | 170 | if (ret < 0) | | ~ | | | | | (51) following 'false' branch... | 171 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 172 | index3 = ret; | | ~ | | | | | (52) ...to here | 173 | | 174 | fp = fopen(certfile3, "wb"); | | ~ | | | | | (53) opened here | 175 | if (fp == NULL) | | ~ | | | | | (54) assuming 'fopen (get_tmpname (&certname3), "wb")' is non-NULL | | (55) following 'false' branch... | 176 | fail("error in fopen\n"); | 177 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (56) ...to here | | (57) following 'true' branch... | 178 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (58) ...to here | | (59) 'fopen (get_tmpname (&certname3), "wb")' leaks here; was opened at (53) | set_x509_ocsp_multi_invalid.c:186:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 186 | assert(fwrite(ocsp_resp1.data, 1, ocsp_resp1.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 148 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 149 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 152 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 153 | fail("error in fopen\n"); | 154 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 155 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 156 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 159 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-59 | |set_x509_ocsp_multi_invalid.c:159:21: | 159 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' |...... | 162 | if (fp == NULL) | | ~ | | | | | (45) following 'false' branch... | 163 | fail("error in fopen\n"); | 164 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (46) ...to here | | (47) following 'true' branch... | 165 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | | ~ | | | | | (48) ...to here | | (49) following 'true' branch... | 166 | fclose(fp); | | ~ | | | | | (50) ...to here |...... | 170 | if (ret < 0) | | ~ | | | | | (51) following 'false' branch... | 171 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 172 | index3 = ret; | | ~ | | | | | (52) ...to here |...... | 175 | if (fp == NULL) | | ~ | | | | | (53) following 'false' branch... | 176 | fail("error in fopen\n"); | 177 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (54) ...to here | | (55) following 'true' branch... | 178 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (56) ...to here | | (57) following 'true' branch... | 179 | fclose(fp); | | ~ | | | | | (58) ...to here |...... | 182 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (59) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 60-62 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (60) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (61) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (62) ...to here | <------+ | 'doit': events 63-68 | |set_x509_ocsp_multi_invalid.c:182:21: | 182 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (63) returning to 'doit' from 'get_tmpname' | 183 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (64) opened here | 184 | if (fp == NULL) | | ~ | | | | | (65) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (66) following 'false' branch... | 185 | fail("error in fopen\n"); | 186 | assert(fwrite(ocsp_resp1.data, 1, ocsp_resp1.size, fp)>0); | | ~ | | | | | (67) ...to here | | (68) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (64) | set_x509_ocsp_multi_invalid.c:204:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 204 | assert(fwrite(ocsp_resp2.data, 1, ocsp_resp2.size, fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 148 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 149 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 152 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 153 | fail("error in fopen\n"); | 154 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 155 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 156 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 159 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-59 | |set_x509_ocsp_multi_invalid.c:159:21: | 159 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' |...... | 162 | if (fp == NULL) | | ~ | | | | | (45) following 'false' branch... | 163 | fail("error in fopen\n"); | 164 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (46) ...to here | | (47) following 'true' branch... | 165 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | | ~ | | | | | (48) ...to here | | (49) following 'true' branch... | 166 | fclose(fp); | | ~ | | | | | (50) ...to here |...... | 170 | if (ret < 0) | | ~ | | | | | (51) following 'false' branch... | 171 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 172 | index3 = ret; | | ~ | | | | | (52) ...to here |...... | 175 | if (fp == NULL) | | ~ | | | | | (53) following 'false' branch... | 176 | fail("error in fopen\n"); | 177 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (54) ...to here | | (55) following 'true' branch... | 178 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (56) ...to here | | (57) following 'true' branch... | 179 | fclose(fp); | | ~ | | | | | (58) ...to here |...... | 182 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (59) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 60-62 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (60) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (61) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (62) ...to here | <------+ | 'doit': events 63-72 | |set_x509_ocsp_multi_invalid.c:182:21: | 182 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (63) returning to 'doit' from 'get_tmpname' | 183 | fp = fopen(ocspfile1, "wb"); | 184 | if (fp == NULL) | | ~ | | | | | (64) following 'false' branch... | 185 | fail("error in fopen\n"); | 186 | assert(fwrite(ocsp_resp1.data, 1, ocsp_resp1.size, fp)>0); | | ~ | | | | | (65) ...to here | | (66) following 'true' branch... | 187 | fclose(fp); | | ~ | | | | | (67) ...to here |...... | 190 | if (ret != GNUTLS_E_OCSP_MISMATCH_WITH_CERTS) | | ~ | | | | | (68) following 'false' branch... |...... | 193 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2|GNUTLS_CERTIFICATE_SKIP_OCSP_RESPONSE_CHECK); | | ~ | | | | | (69) ...to here |...... | 196 | if (ret < 0) | | ~ | | | | | (70) following 'false' branch... |...... | 200 | ocspfile2 = get_tmpname(ocspname2); | | ~ ~ | | | | | | | (72) calling 'get_tmpname' from 'doit' | | (71) ...to here | +--> 'get_tmpname': events 73-75 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (73) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (74) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (75) ...to here | <------+ | 'doit': events 76-81 | |set_x509_ocsp_multi_invalid.c:200:21: | 200 | ocspfile2 = get_tmpname(ocspname2); | | ^ | | | | | (76) returning to 'doit' from 'get_tmpname' | 201 | fp = fopen(ocspfile2, "wb"); | | ~ | | | | | (77) opened here | 202 | if (fp == NULL) | | ~ | | | | | (78) assuming 'fopen (get_tmpname (&ocspname2), "wb")' is non-NULL | | (79) following 'false' branch... | 203 | fail("error in fopen\n"); | 204 | assert(fwrite(ocsp_resp2.data, 1, ocsp_resp2.size, fp)>0); | | ~ | | | | | (80) ...to here | | (81) 'fopen (get_tmpname (&ocspname2), "wb")' leaks here; was opened at (77) | set_x509_ocsp_multi_invalid.c:216:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 216 | assert(fwrite(ocsp_resp3.data, 1, ocsp_resp3.size, fp)>0); | ^ CCLD rng-op-nonce CCLD rng-op-random 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |set_x509_ocsp_multi_invalid.c:90:6: | 90 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 114 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 115 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 116 | | 117 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 118 | | 119 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |set_x509_ocsp_multi_invalid.c:119:21: | 119 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 123 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 124 | fail("error in fopen\n"); | 125 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 126 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 127 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 131 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 132 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 133 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 136 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_ocsp_multi_invalid.c:136:21: | 136 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 148 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 149 | index2 = ret; | | ~ | | | | | (33) ...to here |...... | 152 | if (fp == NULL) | | ~ | | | | | (34) following 'false' branch... | 153 | fail("error in fopen\n"); | 154 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (35) ...to here | | (36) following 'true' branch... | 155 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (37) ...to here | | (38) following 'true' branch... | 156 | fclose(fp); | | ~ | | | | | (39) ...to here |...... | 159 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (40) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 41-43 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (41) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (42) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (43) ...to here | <------+ | 'doit': events 44-59 | |set_x509_ocsp_multi_invalid.c:159:21: | 159 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (44) returning to 'doit' from 'get_tmpname' |...... | 162 | if (fp == NULL) | | ~ | | | | | (45) following 'false' branch... | 163 | fail("error in fopen\n"); | 164 | assert(fwrite(ecc_cert, 1, strlen(ecc_cert), fp)>0); | | ~ | | | | | (46) ...to here | | (47) following 'true' branch... | 165 | assert(fwrite(ecc_key, 1, strlen(ecc_key), fp)>0); | | ~ | | | | | (48) ...to here | | (49) following 'true' branch... | 166 | fclose(fp); | | ~ | | | | | (50) ...to here |...... | 170 | if (ret < 0) | | ~ | | | | | (51) following 'false' branch... | 171 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 172 | index3 = ret; | | ~ | | | | | (52) ...to here |...... | 175 | if (fp == NULL) | | ~ | | | | | (53) following 'false' branch... | 176 | fail("error in fopen\n"); | 177 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (54) ...to here | | (55) following 'true' branch... | 178 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (56) ...to here | | (57) following 'true' branch... | 179 | fclose(fp); | | ~ | | | | | (58) ...to here |...... | 182 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (59) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 60-62 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (60) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (61) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (62) ...to here | <------+ | 'doit': events 63-72 | |set_x509_ocsp_multi_invalid.c:182:21: | 182 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (63) returning to 'doit' from 'get_tmpname' | 183 | fp = fopen(ocspfile1, "wb"); | 184 | if (fp == NULL) | | ~ | | | | | (64) following 'false' branch... | 185 | fail("error in fopen\n"); | 186 | assert(fwrite(ocsp_resp1.data, 1, ocsp_resp1.size, fp)>0); | | ~ | | | | | (65) ...to here | | (66) following 'true' branch... | 187 | fclose(fp); | | ~ | | | | | (67) ...to here |...... | 190 | if (ret != GNUTLS_E_OCSP_MISMATCH_WITH_CERTS) | | ~ | | | | | (68) following 'false' branch... |...... | 193 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2|GNUTLS_CERTIFICATE_SKIP_OCSP_RESPONSE_CHECK); | | ~ | | | | | (69) ...to here |...... | 196 | if (ret < 0) | | ~ | | | | | (70) following 'false' branch... |...... | 200 | ocspfile2 = get_tmpname(ocspname2); | | ~ ~ | | | | | | | (72) calling 'get_tmpname' from 'doit' | | (71) ...to here | +--> 'get_tmpname': events 73-75 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (73) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (74) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (75) ...to here | <------+ | 'doit': events 76-83 | |set_x509_ocsp_multi_invalid.c:200:21: | 200 | ocspfile2 = get_tmpname(ocspname2); | | ^ | | | | | (76) returning to 'doit' from 'get_tmpname' | 201 | fp = fopen(ocspfile2, "wb"); | 202 | if (fp == NULL) | | ~ | | | | | (77) following 'false' branch... | 203 | fail("error in fopen\n"); | 204 | assert(fwrite(ocsp_resp2.data, 1, ocsp_resp2.size, fp)>0); | | ~ | | | | | (78) ...to here | | (79) following 'true' branch... | 205 | fclose(fp); | | ~ | | | | | (80) ...to here |...... | 208 | if (ret < 0) | | ~ | | | | | (81) following 'false' branch... |...... | 212 | ocspfile3 = get_tmpname(ocspname3); | | ~ ~ | | | | | | | (83) calling 'get_tmpname' from 'doit' | | (82) ...to here | +--> 'get_tmpname': events 84-86 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (84) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (85) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (86) ...to here | <------+ | 'doit': events 87-92 | |set_x509_ocsp_multi_invalid.c:212:21: | 212 | ocspfile3 = get_tmpname(ocspname3); | | ^ | | | | | (87) returning to 'doit' from 'get_tmpname' | 213 | fp = fopen(ocspfile3, "wb"); | | ~ | | | | | (88) opened here | 214 | if (fp == NULL) | | ~ | | | | | (89) assuming 'fopen (get_tmpname (&ocspname3), "wb")' is non-NULL | | (90) following 'false' branch... | 215 | fail("error in fopen\n"); | 216 | assert(fwrite(ocsp_resp3.data, 1, ocsp_resp3.size, fp)>0); | | ~ | | | | | (91) ...to here | | (92) 'fopen (get_tmpname (&ocspname3), "wb")' leaks here; was opened at (88) | CCLD rng-op-key CCLD x509-dn-decode-compat CCLD ip-check CCLD mini-x509-ipaddr CCLD trust-store CCLD base64-raw CCLD random-art CCLD dhex509self CCLD dss-sig-val CCLD sign-pk-api CCLD tls-session-ext-override CCLD record-pad CCLD tls13-server-kx-neg CCLD gnutls_ext_raw_parse_dtls CCLD key-export-pkcs8 CCLD null_retrieve_function CCLD tls-record-size-limit CCLD tls-crt_type-neg CCLD resume-with-stek-expiration CCLD rawpk-api CCLD resume-with-previous-stek CCLD tls-record-size-limit-asym CCLD dh-compute CCLD ecdh-compute utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |record-pad.c:405:6: | 405 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 408 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 329 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD sign-verify-data-newapi CCLD sign-verify-newapi CCLD sign-verify-deterministic CCLD iov CCLD aead-cipher-vec CCLD tls13-without-timeout-func CCLD buffer set_x509_key_file_legacy.c: In function 'set_cert': set_x509_key_file_legacy.c:79:9: warning: leak of FILE 'fopen (get_tmpname (0B), "w")' [CWE-775] [-Wanalyzer-file-leak] 79 | assert(fwrite(cert->data, 1, cert->size, fp)>0); | ^ 'doit': events 1-12 | | 118 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 127 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (2) following 'true' branch... | 128 | gnutls_global_set_time_function(mytime); | | ~ | | | | | (3) ...to here |...... | 134 | if (ret != GNUTLS_E_FILE_ERROR) | | ~ | | | | | (4) following 'false' branch... |...... | 137 | gnutls_certificate_free_credentials(xcred); | | ~ | | | | | (5) ...to here | 138 | | 139 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (6) following 'true' branch... | 140 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (7) ...to here | | (8) following 'true' branch... | 141 | | 142 | ret = gnutls_certificate_set_x509_trust_mem(clicred, &subca3_cert, GNUTLS_X509_FMT_PEM); | | ~ | | | | | (9) ...to here | 143 | if (ret < 0) | | ~ | | | | | (10) following 'false' branch... |...... | 146 | success("Testing store of certificates\n"); | | ~ | | | | | (11) ...to here | 147 | | 148 | idx = set_cert(xcred, &server_ca3_key, &server_ca3_localhost6_cert_chain); | | ~ | | | | | (12) calling 'set_cert' from 'doit' | +--> 'set_cert': events 13-14 | | 68 | static unsigned set_cert(gnutls_certificate_credentials_t xcred, const gnutls_datum_t *key, const gnutls_datum_t *cert) | | ^ | | | | | (13) entry to 'set_cert' |...... | 74 | certfile = get_tmpname(NULL); | | ~ | | | | | (14) calling 'get_tmpname' from 'set_cert' | +--> 'get_tmpname': events 15-17 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (15) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (16) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (17) ...to here | <------+ | 'set_cert': events 18-23 | |set_x509_key_file_legacy.c:74:20: | 74 | certfile = get_tmpname(NULL); | | ^ | | | | | (18) returning to 'set_cert' from 'get_tmpname' | 75 | | 76 | fp = fopen(certfile, "w"); | | ~ | | | | | (19) opened here | 77 | if (fp == NULL) | | ~ | | | | | (20) assuming 'fopen (get_tmpname (0B), "w")' is non-NULL | | (21) following 'false' branch... | 78 | fail("error in fopen\n"); | 79 | assert(fwrite(cert->data, 1, cert->size, fp)>0); | | ~ | | | | | (22) ...to here | | (23) 'fopen (get_tmpname (0B), "w")' leaks here; was opened at (19) | set_x509_key_file_legacy.c:80:9: warning: leak of FILE 'fopen (get_tmpname (0B), "w")' [CWE-775] [-Wanalyzer-file-leak] 80 | assert(fwrite(key->data, 1, key->size, fp)>0); | ^ 'doit': events 1-12 | | 118 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 127 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (2) following 'true' branch... | 128 | gnutls_global_set_time_function(mytime); | | ~ | | | | | (3) ...to here |...... | 134 | if (ret != GNUTLS_E_FILE_ERROR) | | ~ | | | | | (4) following 'false' branch... |...... | 137 | gnutls_certificate_free_credentials(xcred); | | ~ | | | | | (5) ...to here | 138 | | 139 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (6) following 'true' branch... | 140 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (7) ...to here | | (8) following 'true' branch... | 141 | | 142 | ret = gnutls_certificate_set_x509_trust_mem(clicred, &subca3_cert, GNUTLS_X509_FMT_PEM); | | ~ | | | | | (9) ...to here | 143 | if (ret < 0) | | ~ | | | | | (10) following 'false' branch... |...... | 146 | success("Testing store of certificates\n"); | | ~ | | | | | (11) ...to here | 147 | | 148 | idx = set_cert(xcred, &server_ca3_key, &server_ca3_localhost6_cert_chain); | | ~ | | | | | (12) calling 'set_cert' from 'doit' | +--> 'set_cert': events 13-14 | | 68 | static unsigned set_cert(gnutls_certificate_credentials_t xcred, const gnutls_datum_t *key, const gnutls_datum_t *cert) | | ^ | | | | | (13) entry to 'set_cert' |...... | 74 | certfile = get_tmpname(NULL); | | ~ | | | | | (14) calling 'get_tmpname' from 'set_cert' | +--> 'get_tmpname': events 15-17 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (15) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (16) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (17) ...to here | <------+ | 'set_cert': events 18-25 | |set_x509_key_file_legacy.c:74:20: | 74 | certfile = get_tmpname(NULL); | | ^ | | | | | (18) returning to 'set_cert' from 'get_tmpname' | 75 | | 76 | fp = fopen(certfile, "w"); | | ~ | | | | | (19) opened here | 77 | if (fp == NULL) | | ~ | | | | | (20) assuming 'fopen (get_tmpname (0B), "w")' is non-NULL | | (21) following 'false' branch... | 78 | fail("error in fopen\n"); | 79 | assert(fwrite(cert->data, 1, cert->size, fp)>0); | | ~ | | | | | (22) ...to here | | (23) following 'true' branch... | 80 | assert(fwrite(key->data, 1, key->size, fp)>0); | | ~ | | | | | (24) ...to here | | (25) 'fopen (get_tmpname (0B), "w")' leaks here; was opened at (19) | CCLD status-request-revoked CCLD set_x509_ocsp_multi_cli CCLD kdf-api CCLD keylog-func CCLD handshake-write CCLD x509cert-dntypes CCLD id-on-xmppAddr CCLD tls13-compat-mode CCLD ciphersuite-name CCLD x509-upnconstraint CCLD cipher-padding CCLD pkcs7-verify-double-free CCLD fips-rsa-sizes CCLD tls-channel-binding CCLD strict-der CCLD system-prio-file CCLD pkcs11-cert-import-url-exts CCLD pkcs11-get-exts CCLD pkcs11-get-raw-issuer-exts CCLD pkcs11-cert-import-url4-exts CCLD pkcs11/pkcs11-chainverify CCLD pkcs11/pkcs11-get-issuer CCLD pkcs11/pkcs11-is-known CCLD pkcs11/pkcs11-combo CCLD pkcs11/pkcs11-privkey CCLD pkcs11/pkcs11-pubkey-import-rsa CCLD pkcs11/pkcs11-pubkey-import-ecdsa CCLD pkcs11-import-url-privkey set_x509_ocsp_multi_cli.c: In function 'doit': set_x509_ocsp_multi_cli.c:141:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 141 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | ^ 'doit': events 1-6 | | 111 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 130 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (2) following 'true' branch... | 131 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (3) ...to here | | (4) following 'true' branch... | 132 | | 133 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (5) ...to here | 134 | | 135 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (6) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 7-9 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (7) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (8) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (9) ...to here | <------+ | 'doit': events 10-15 | |set_x509_ocsp_multi_cli.c:135:21: | 135 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (10) returning to 'doit' from 'get_tmpname' |...... | 138 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (11) opened here | 139 | if (fp == NULL) | | ~ | | | | | (12) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (13) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (11) | set_x509_ocsp_multi_cli.c:142:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'doit': events 1-6 | | 111 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 130 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (2) following 'true' branch... | 131 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (3) ...to here | | (4) following 'true' branch... | 132 | | 133 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (5) ...to here | 134 | | 135 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (6) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 7-9 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (7) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (8) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (9) ...to here | <------+ | 'doit': events 10-17 | |set_x509_ocsp_multi_cli.c:135:21: | 135 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (10) returning to 'doit' from 'get_tmpname' |...... | 138 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (11) opened here | 139 | if (fp == NULL) | | ~ | | | | | (12) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (13) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (11) | set_x509_ocsp_multi_cli.c:161:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 161 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | ^ 'doit': events 1-6 | | 111 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 130 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (2) following 'true' branch... | 131 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (3) ...to here | | (4) following 'true' branch... | 132 | | 133 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (5) ...to here | 134 | | 135 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (6) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 7-9 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (7) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (8) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (9) ...to here | <------+ | 'doit': events 10-21 | |set_x509_ocsp_multi_cli.c:135:21: | 135 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (10) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (11) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (12) ...to here | | (13) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (16) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (17) following 'false' branch... |...... | 150 | ret = gnutls_certificate_set_x509_key_file2(clicred, certfile1, certfile1, | | ~ | | | | | (18) ...to here | 151 | GNUTLS_X509_FMT_PEM, NULL, 0); | 152 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 153 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 154 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 157 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-30 | |set_x509_ocsp_multi_cli.c:157:21: | 157 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 158 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (26) opened here | 159 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (28) following 'false' branch... | 160 | fail("error in fopen\n"); | 161 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (29) ...to here | | (30) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (26) | set_x509_ocsp_multi_cli.c:162:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 162 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | ^ 'doit': events 1-6 | | 111 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 130 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (2) following 'true' branch... | 131 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (3) ...to here | | (4) following 'true' branch... | 132 | | 133 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (5) ...to here | 134 | | 135 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (6) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 7-9 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (7) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (8) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (9) ...to here | <------+ | 'doit': events 10-21 | |set_x509_ocsp_multi_cli.c:135:21: | 135 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (10) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (11) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (12) ...to here | | (13) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (16) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (17) following 'false' branch... |...... | 150 | ret = gnutls_certificate_set_x509_key_file2(clicred, certfile1, certfile1, | | ~ | | | | | (18) ...to here | 151 | GNUTLS_X509_FMT_PEM, NULL, 0); | 152 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 153 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 154 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 157 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-32 | |set_x509_ocsp_multi_cli.c:157:21: | 157 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 158 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (26) opened here | 159 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (28) following 'false' branch... | 160 | fail("error in fopen\n"); | 161 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 162 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | | ~ | | | | | (31) ...to here | | (32) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (26) | set_x509_ocsp_multi_cli.c:163:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 163 | assert(fwrite(ocsp_ca3_localhost6_unknown_pem.data, 1, ocsp_ca3_localhost6_unknown_pem.size, fp)>0); | ^ 'doit': events 1-6 | | 111 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 130 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (2) following 'true' branch... | 131 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (3) ...to here | | (4) following 'true' branch... | 132 | | 133 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (5) ...to here | 134 | | 135 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (6) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 7-9 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (7) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (8) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (9) ...to here | <------+ | 'doit': events 10-21 | |set_x509_ocsp_multi_cli.c:135:21: | 135 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (10) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (11) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (12) ...to here | | (13) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (16) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (17) following 'false' branch... |...... | 150 | ret = gnutls_certificate_set_x509_key_file2(clicred, certfile1, certfile1, | | ~ | | | | | (18) ...to here | 151 | GNUTLS_X509_FMT_PEM, NULL, 0); | 152 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 153 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 154 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 157 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-34 | |set_x509_ocsp_multi_cli.c:157:21: | 157 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 158 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (26) opened here | 159 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (28) following 'false' branch... | 160 | fail("error in fopen\n"); | 161 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 162 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | | ~ | | | | | (31) ...to here | | (32) following 'true' branch... | 163 | assert(fwrite(ocsp_ca3_localhost6_unknown_pem.data, 1, ocsp_ca3_localhost6_unknown_pem.size, fp)>0); | | ~ | | | | | (33) ...to here | | (34) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (26) | set_x509_ocsp_multi_cli.c:176:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 176 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | ^ 'doit': events 1-6 | | 111 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 130 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (2) following 'true' branch... | 131 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (3) ...to here | | (4) following 'true' branch... | 132 | | 133 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (5) ...to here | 134 | | 135 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (6) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 7-9 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (7) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (8) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (9) ...to here | <------+ | 'doit': events 10-21 | |set_x509_ocsp_multi_cli.c:135:21: | 135 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (10) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (11) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (12) ...to here | | (13) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (16) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (17) following 'false' branch... |...... | 150 | ret = gnutls_certificate_set_x509_key_file2(clicred, certfile1, certfile1, | | ~ | | | | | (18) ...to here | 151 | GNUTLS_X509_FMT_PEM, NULL, 0); | 152 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 153 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 154 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 157 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-40 | |set_x509_ocsp_multi_cli.c:157:21: | 157 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 158 | fp = fopen(ocspfile1, "wb"); | 159 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 160 | fail("error in fopen\n"); | 161 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 162 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 163 | assert(fwrite(ocsp_ca3_localhost6_unknown_pem.data, 1, ocsp_ca3_localhost6_unknown_pem.size, fp)>0); | | ~ | | | | | (31) ...to here | | (32) following 'true' branch... | 164 | fclose(fp); | | ~ | | | | | (33) ...to here |...... | 168 | if (ret != GNUTLS_E_OCSP_MISMATCH_WITH_CERTS) | | ~ | | | | | (34) following 'false' branch... |...... | 172 | remove(ocspfile1); | | ~ | | | | | (35) ...to here | 173 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (36) opened here | 174 | if (fp == NULL) | | ~ | | | | | (37) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (38) following 'false' branch... | 175 | fail("error in fopen\n"); | 176 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (39) ...to here | | (40) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (36) | set_x509_ocsp_multi_cli.c:177:9: warning: leak of FILE 'fopen (get_tmpname (&ocspname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 177 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | ^ 'doit': events 1-6 | | 111 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 130 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (2) following 'true' branch... | 131 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (3) ...to here | | (4) following 'true' branch... | 132 | | 133 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (5) ...to here | 134 | | 135 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (6) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 7-9 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (7) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (8) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (9) ...to here | <------+ | 'doit': events 10-21 | |set_x509_ocsp_multi_cli.c:135:21: | 135 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (10) returning to 'doit' from 'get_tmpname' |...... | 139 | if (fp == NULL) | | ~ | | | | | (11) following 'false' branch... | 140 | fail("error in fopen\n"); | 141 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (12) ...to here | | (13) following 'true' branch... | 142 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 143 | fclose(fp); | | ~ | | | | | (16) ...to here |...... | 147 | if (ret < 0) | | ~ | | | | | (17) following 'false' branch... |...... | 150 | ret = gnutls_certificate_set_x509_key_file2(clicred, certfile1, certfile1, | | ~ | | | | | (18) ...to here | 151 | GNUTLS_X509_FMT_PEM, NULL, 0); | 152 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 153 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 154 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 157 | ocspfile1 = get_tmpname(ocspname1); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-42 | |set_x509_ocsp_multi_cli.c:157:21: | 157 | ocspfile1 = get_tmpname(ocspname1); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 158 | fp = fopen(ocspfile1, "wb"); | 159 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 160 | fail("error in fopen\n"); | 161 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 162 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 163 | assert(fwrite(ocsp_ca3_localhost6_unknown_pem.data, 1, ocsp_ca3_localhost6_unknown_pem.size, fp)>0); | | ~ | | | | | (31) ...to here | | (32) following 'true' branch... | 164 | fclose(fp); | | ~ | | | | | (33) ...to here |...... | 168 | if (ret != GNUTLS_E_OCSP_MISMATCH_WITH_CERTS) | | ~ | | | | | (34) following 'false' branch... |...... | 172 | remove(ocspfile1); | | ~ | | | | | (35) ...to here | 173 | fp = fopen(ocspfile1, "wb"); | | ~ | | | | | (36) opened here | 174 | if (fp == NULL) | | ~ | | | | | (37) assuming 'fopen (get_tmpname (&ocspname1), "wb")' is non-NULL | | (38) following 'false' branch... | 175 | fail("error in fopen\n"); | 176 | assert(fwrite(ocsp_subca3_unknown_pem.data, 1, ocsp_subca3_unknown_pem.size, fp)>0); | | ~ | | | | | (39) ...to here | | (40) following 'true' branch... | 177 | assert(fwrite(ocsp_ca3_localhost_unknown_pem.data, 1, ocsp_ca3_localhost_unknown_pem.size, fp)>0); | | ~ | | | | | (41) ...to here | | (42) 'fopen (get_tmpname (&ocspname1), "wb")' leaks here; was opened at (36) | CCLD pkcs11-privkey-fork pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | CCLD pkcs11/pkcs11-ec-privkey-test pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | CCLD pkcs11-privkey-always-auth CCLD pkcs11-privkey-export pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | CCLD pkcs11/pkcs11-import-with-pin CCLD pkcs11/pkcs11-privkey-pthread CCLD pkcs11/pkcs11-pin-func CCLD pkcs11/pkcs11-obj-import CCLD pkcs11-privkey-fork-reinit CCLD pkcs11-mechanisms CCLD pkcs11-privkey-safenet-always-auth CCLD pkcs11/pkcs11-rsa-pss-privkey-test pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | CCLD pkcs11/tls-neg-pkcs11-key CCLD pkcs11/pkcs11-privkey-generate CCLD pkcs11/gnutls_x509_crt_list_import_url CCLD pkcs11/gnutls_pcert_list_import_x509_file CCLD pkcs11/pkcs11-eddsa-privkey-test CCLD pkcs11-token-raw pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | CCLD pkcs11-obj-raw CCLD pkcs11-import-url-privkey-caps pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | CCLD openssl CCLD ocsp CCLD x509self CCLD x509dn CCLD anonself pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | CCLD pskself CCLD pskself2 CCLD dhepskself CCLD setcredcrash pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | CCLD tls12-resume-x509 CCLD tls12-resume-psk CCLD tls12-resume-anon CCLD tls13-resume-x509 CCLD tls13-resume-psk CCLD tls13-early-data CCLD tls13-early-data-neg CCLD tls13-early-data-neg2 CCLD resume-with-record-size-limit CCLD record-sendfile CCLD tls13/post-handshake-with-cert-pkcs11 pkcs11/softhsm.h: In function 'set_softhsm_conf': pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'doit': events 1-4 | |pkcs11/tls-neg-pkcs11-key.c:417:6: | 417 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 425 | if (gnutls_fips140_mode_enabled()) | | ~ | | | | | (2) following 'false' branch... |...... | 431 | bin = softhsm_bin(); | | ~ | | | | | (3) ...to here |...... | 444 | set_softhsm_conf(CONFIG); | | ~ | | | | | (4) calling 'set_softhsm_conf' from 'doit' | +--> 'set_softhsm_conf': events 5-10 | |pkcs11/softhsm.h:86:6: | 86 | void set_softhsm_conf(const char *config) | | ^ | | | | | (5) entry to 'set_softhsm_conf' |...... | 96 | fp = fopen(config, "w"); | | ~ | | | | | (6) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (7) assuming 'fopen (config_5(D), "w")' is non-NULL | | (8) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (9) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (10) 'fopen (config_5(D), "w")' leaks here; was opened at (6) | CCLD pkcs11/tls-neg-pkcs11-no-key CCLD global-init-override CCLD system-override-hash CCLD system-override-sig CC dtls/dtls-stress.o CCLD system-override-sig-tls CCLD system-override-curves-allowlist CCLD protocol-set-allowlist CCLD pkcs11/list-tokens ./pkcs11/softhsm.h: In function 'set_softhsm_conf': ./pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | CCLD pkcs11/list-objects CCLD tls13/supported_versions CCLD tls13/tls12-no-tls13-exts ./pkcs11/softhsm.h: In function 'set_softhsm_conf': ./pkcs11/softhsm.h:112:12: warning: leak of FILE 'fopen (config_5(D), "w")' [CWE-775] [-Wanalyzer-file-leak] 112 | if (strlen(db_dir) < 6) { | ^ 'set_softhsm_conf': events 1-5 | | 96 | fp = fopen(config, "w"); | | ^ | | | | | (1) opened here | 97 | if (fp == NULL) { | | ~ | | | | | (2) assuming 'fopen (config_5(D), "w")' is non-NULL | | (3) following 'false' branch... |...... | 107 | fputs("directories.tokendir = ", fp); | | ~ | | | | | (4) ...to here |...... | 112 | if (strlen(db_dir) < 6) { | | ~ | | | | | (5) 'fopen (config_5(D), "w")' leaks here; was opened at (1) | CCLD tls13/post-handshake-with-cert CCLD tls13/post-handshake-without-cert CCLD tls13/cookie CCLD tls13/key_share CCLD tls13/prf CCLD tls13/prf-early CCLD tls13/post-handshake-with-cert-ticket CCLD tls12-rollback-detection CCLD tls11-rollback-detection CCLD tls12-check-rollback-val utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |tls13/supported_versions.c:319:6: | 319 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 325 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 311 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |./utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |tls13/tls12-no-tls13-exts.c:208:6: | 208 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 214 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 200 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |./utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD tls11-check-rollback-val utils.c: In function '_fail': CCLD tls13/post-handshake-with-psk utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |tls13/post-handshake-without-cert.c:228:6: | 228 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 234 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 220 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |./utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD tls13/post-handshake-with-cert-auto CCLD tls13/anti_replay CCLD tls13/compress-cert CCLD tls13/compress-cert-neg CCLD tls13/compress-cert-neg2 CCLD tls13/compress-cert-cli CCLD tls13/hello_retry_request CCLD tls13/hello_retry_request_resume CCLD tls13/psk-ext CCLD tls13/key_update CCLD tls13/key_update_multiple utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |tls13/hello_retry_request.c:221:6: | 221 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 227 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 213 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |./utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD tls13/key_limits utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |tls13/hello_retry_request_resume.c:284:6: | 284 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 290 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 276 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |./utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD tls13/multi-ocsp CCLD tls13/ocsp-client CCLD tls13/change_cipher_spec CCLD tls13/no-psk-exts CCLD tls13/psk-dumbfw CCLD tls13/psk-ke-modes CCLD tls13/no-auto-send-ticket tls13/psk-ext.c: In function 'decode': tls13/psk-ext.c:95:19: warning: use of uninitialized value 'binder.size' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | ^ 'decode': events 1-10 | | 45 | gnutls_datum_t binder; | | ^ | | | | | (1) region created on stack here |...... | 50 | if (ret < 0) { | | ~ | | | | | (2) following 'false' branch... |...... | 57 | _gnutls13_psk_ext_iter_init(&iter, &p); | | ~ | | | | | (3) ...to here |...... | 67 | if (psk.identity.size == id->size && memcmp(psk.identity.data, id->data, id->size) == 0) { | | ~ | | | | | (4) following 'true' branch... | 68 | if (debug) | | ~ | | | | | (5) ...to here |...... | 82 | for (j = 0; j <= i; j++) { | | ~ | | | | | (6) following 'false' branch (when 'j_22 > i_57')... |...... | 92 | if (debug) | | ~ ~ | | | | | | | (8) following 'false' branch... | | (7) ...to here |...... | 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | | ~ ~ | | | | | | | (10) use of uninitialized value 'binder.size' here | | (9) ...to here | tls13/psk-ext.c:95:19: warning: use of uninitialized value 'binder.size' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | ^ 'doit': events 1-4 | | 196 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 200 | for (i=0;i 'decode': events 5-15 | | 38 | static void decode(const char *test_name, const gnutls_datum_t *raw, const gnutls_datum_t *id, | | ^ | | | | | (5) entry to 'decode' |...... | 45 | gnutls_datum_t binder; | | ~ | | | | | (6) region created on stack here |...... | 50 | if (ret < 0) { | | ~ | | | | | (7) following 'false' branch... |...... | 57 | _gnutls13_psk_ext_iter_init(&iter, &p); | | ~ | | | | | (8) ...to here |...... | 67 | if (psk.identity.size == id->size && memcmp(psk.identity.data, id->data, id->size) == 0) { | | ~ | | | | | (9) following 'true' branch... | 68 | if (debug) | | ~ | | | | | (10) ...to here |...... | 82 | for (j = 0; j <= i; j++) { | | ~ | | | | | (11) following 'false' branch (when 'j_22 > i_57')... |...... | 92 | if (debug) | | ~ ~ | | | | | | | (13) following 'false' branch... | | (12) ...to here |...... | 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | | ~ ~ | | | | | | | (15) use of uninitialized value 'binder.size' here | | (14) ...to here | tls13/psk-ext.c:95:19: warning: use of uninitialized value 'binder.size' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-6 | |tls13/psk-ext.c:196:6: | 196 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 200 | for (i=0;i 'decode': events 7-17 | | 38 | static void decode(const char *test_name, const gnutls_datum_t *raw, const gnutls_datum_t *id, | | ^ | | | | | (7) entry to 'decode' |...... | 45 | gnutls_datum_t binder; | | ~ | | | | | (8) region created on stack here |...... | 50 | if (ret < 0) { | | ~ | | | | | (9) following 'false' branch... |...... | 57 | _gnutls13_psk_ext_iter_init(&iter, &p); | | ~ | | | | | (10) ...to here |...... | 67 | if (psk.identity.size == id->size && memcmp(psk.identity.data, id->data, id->size) == 0) { | | ~ | | | | | (11) following 'true' branch... | 68 | if (debug) | | ~ | | | | | (12) ...to here |...... | 82 | for (j = 0; j <= i; j++) { | | ~ | | | | | (13) following 'false' branch (when 'j_22 > i_57')... |...... | 92 | if (debug) | | ~ ~ | | | | | | | (15) following 'false' branch... | | (14) ...to here |...... | 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | | ~ ~ | | | | | | | (17) use of uninitialized value 'binder.size' here | | (16) ...to here | tls13/psk-ext.c:95:52: warning: use of uninitialized value 'binder.data' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | ^ 'decode': events 1-12 | | 45 | gnutls_datum_t binder; | | ^ | | | | | (1) region created on stack here |...... | 50 | if (ret < 0) { | | ~ | | | | | (2) following 'false' branch... |...... | 57 | _gnutls13_psk_ext_iter_init(&iter, &p); | | ~ | | | | | (3) ...to here |...... | 67 | if (psk.identity.size == id->size && memcmp(psk.identity.data, id->data, id->size) == 0) { | | ~ | | | | | (4) following 'true' branch... | 68 | if (debug) | | ~ | | | | | (5) ...to here |...... | 82 | for (j = 0; j <= i; j++) { | | ~ | | | | | (6) following 'false' branch (when 'j_22 > i_57')... |...... | 92 | if (debug) | | ~ ~ | | | | | | | (8) following 'false' branch... | | (7) ...to here |...... | 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | | ~ ~ ~ | | | | | | | | | (11) ...to here | | | (10) following 'false' branch... (12) use of uninitialized value 'binder.data' here | | (9) ...to here | tls13/psk-ext.c:95:52: warning: use of uninitialized value 'binder.data' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | ^ 'doit': events 1-4 | | 196 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 200 | for (i=0;i 'decode': events 5-17 | | 38 | static void decode(const char *test_name, const gnutls_datum_t *raw, const gnutls_datum_t *id, | | ^ | | | | | (5) entry to 'decode' |...... | 45 | gnutls_datum_t binder; | | ~ | | | | | (6) region created on stack here |...... | 50 | if (ret < 0) { | | ~ | | | | | (7) following 'false' branch... |...... | 57 | _gnutls13_psk_ext_iter_init(&iter, &p); | | ~ | | | | | (8) ...to here |...... | 67 | if (psk.identity.size == id->size && memcmp(psk.identity.data, id->data, id->size) == 0) { | | ~ | | | | | (9) following 'true' branch... | 68 | if (debug) | | ~ | | | | | (10) ...to here |...... | 82 | for (j = 0; j <= i; j++) { | | ~ | | | | | (11) following 'false' branch (when 'j_22 > i_57')... |...... | 92 | if (debug) | | ~ ~ | | | | | | | (13) following 'false' branch... | | (12) ...to here |...... | 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | | ~ ~ ~ | | | | | | | | | (16) ...to here | | | (15) following 'false' branch... (17) use of uninitialized value 'binder.data' here | | (14) ...to here | tls13/psk-ext.c:95:52: warning: use of uninitialized value 'binder.data' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-6 | |tls13/psk-ext.c:196:6: | 196 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 200 | for (i=0;i 'decode': events 7-19 | | 38 | static void decode(const char *test_name, const gnutls_datum_t *raw, const gnutls_datum_t *id, | | ^ | | | | | (7) entry to 'decode' |...... | 45 | gnutls_datum_t binder; | | ~ | | | | | (8) region created on stack here |...... | 50 | if (ret < 0) { | | ~ | | | | | (9) following 'false' branch... |...... | 57 | _gnutls13_psk_ext_iter_init(&iter, &p); | | ~ | | | | | (10) ...to here |...... | 67 | if (psk.identity.size == id->size && memcmp(psk.identity.data, id->data, id->size) == 0) { | | ~ | | | | | (11) following 'true' branch... | 68 | if (debug) | | ~ | | | | | (12) ...to here |...... | 82 | for (j = 0; j <= i; j++) { | | ~ | | | | | (13) following 'false' branch (when 'j_22 > i_57')... |...... | 92 | if (debug) | | ~ ~ | | | | | | | (15) following 'false' branch... | | (14) ...to here |...... | 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | | ~ ~ ~ | | | | | | | | | (18) ...to here | | | (17) following 'false' branch... (19) use of uninitialized value 'binder.data' here | | (16) ...to here | tls13/psk-ext.c:96:32: warning: use of uninitialized value 'binder.data' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 96 | hexprint(binder.data, binder.size); | ^ 'decode': events 1-10 | | 45 | gnutls_datum_t binder; | | ^ | | | | | (1) region created on stack here |...... | 50 | if (ret < 0) { | | ~ | | | | | (2) following 'false' branch... |...... | 57 | _gnutls13_psk_ext_iter_init(&iter, &p); | | ~ | | | | | (3) ...to here |...... | 67 | if (psk.identity.size == id->size && memcmp(psk.identity.data, id->data, id->size) == 0) { | | ~ | | | | | (4) following 'true' branch... | 68 | if (debug) | | ~ | | | | | (5) ...to here |...... | 82 | for (j = 0; j <= i; j++) { | | ~ | | | | | (6) following 'false' branch (when 'j_22 > i_57')... |...... | 92 | if (debug) | | ~ ~ | | | | | | | (8) following 'false' branch... | | (7) ...to here |...... | 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | | ~ | | | | | (9) ...to here | 96 | hexprint(binder.data, binder.size); | | ~ | | | | | (10) use of uninitialized value 'binder.data' here | tls13/psk-ext.c:96:32: warning: use of uninitialized value 'binder.data' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 96 | hexprint(binder.data, binder.size); | ^ 'doit': events 1-4 | | 196 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 200 | for (i=0;i 'decode': events 5-15 | | 38 | static void decode(const char *test_name, const gnutls_datum_t *raw, const gnutls_datum_t *id, | | ^ | | | | | (5) entry to 'decode' |...... | 45 | gnutls_datum_t binder; | | ~ | | | | | (6) region created on stack here |...... | 50 | if (ret < 0) { | | ~ | | | | | (7) following 'false' branch... |...... | 57 | _gnutls13_psk_ext_iter_init(&iter, &p); | | ~ | | | | | (8) ...to here |...... | 67 | if (psk.identity.size == id->size && memcmp(psk.identity.data, id->data, id->size) == 0) { | | ~ | | | | | (9) following 'true' branch... | 68 | if (debug) | | ~ | | | | | (10) ...to here |...... | 82 | for (j = 0; j <= i; j++) { | | ~ | | | | | (11) following 'false' branch (when 'j_22 > i_57')... |...... | 92 | if (debug) | | ~ ~ | | | | | | | (13) following 'false' branch... | | (12) ...to here |...... | 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | | ~ | | | | | (14) ...to here | 96 | hexprint(binder.data, binder.size); | | ~ | | | | | (15) use of uninitialized value 'binder.data' here | tls13/psk-ext.c:96:32: warning: use of uninitialized value 'binder.data' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 96 | hexprint(binder.data, binder.size); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-6 | |tls13/psk-ext.c:196:6: | 196 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 200 | for (i=0;i 'decode': events 7-17 | | 38 | static void decode(const char *test_name, const gnutls_datum_t *raw, const gnutls_datum_t *id, | | ^ | | | | | (7) entry to 'decode' |...... | 45 | gnutls_datum_t binder; | | ~ | | | | | (8) region created on stack here |...... | 50 | if (ret < 0) { | | ~ | | | | | (9) following 'false' branch... |...... | 57 | _gnutls13_psk_ext_iter_init(&iter, &p); | | ~ | | | | | (10) ...to here |...... | 67 | if (psk.identity.size == id->size && memcmp(psk.identity.data, id->data, id->size) == 0) { | | ~ | | | | | (11) following 'true' branch... | 68 | if (debug) | | ~ | | | | | (12) ...to here |...... | 82 | for (j = 0; j <= i; j++) { | | ~ | | | | | (13) following 'false' branch (when 'j_22 > i_57')... |...... | 92 | if (debug) | | ~ ~ | | | | | | | (15) following 'false' branch... | | (14) ...to here |...... | 95 | if (binder.size != b->size || memcmp(binder.data, b->data, b->size) != 0) { | | ~ | | | | | (16) ...to here | 96 | hexprint(binder.data, binder.size); | | ~ | | | | | (17) use of uninitialized value 'binder.data' here | CCLD safe-renegotiation/srn0 CCLD safe-renegotiation/srn1 CCLD safe-renegotiation/srn2 CCLD safe-renegotiation/srn3 CCLD safe-renegotiation/srn4 CCLD safe-renegotiation/srn5 utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'start': events 1-2 | |tls13/change_cipher_spec.c:320:6: | 320 | void start(unsigned ccs_check) | | ^ | | | | | (1) entry to 'start' |...... | 326 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 311 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |./utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'doit': events 1-2 | |tls13/no-psk-exts.c:225:6: | 225 | void doit(void) | | ^ | | | | | (1) entry to 'doit' |...... | 231 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 217 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |./utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ utils.c: In function '_fail': utils.c:111:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] 111 | exit(1); | ^ 'run_test': events 1-2 | |tls13/psk-dumbfw.c:293:6: | 293 | void run_test(const char *prio) | | ^ | | | | | (1) entry to 'run_test' |...... | 299 | signal(SIGCHLD, ch_handler); | | ~ | | | | | (2) registering 'ch_handler' as signal handler | event 3 | |lto1: | (3): later on, when the signal is delivered to the process | +--> 'ch_handler': event 4 | | 283 | static void ch_handler(int sig) | | ^ | | | | | (4) entry to 'ch_handler' | 'ch_handler': event 5 | |./utils.h:177:9: | 177 | _check_wait_status(status, 0); | | ^ | | | | | (5) calling '_check_wait_status' from 'ch_handler' | +--> '_check_wait_status': events 6-9 | | 156 | inline static void _check_wait_status(int status, unsigned sigonly) | | ^ | | | | | (6) entry to '_check_wait_status' |...... | 161 | if (WIFSIGNALED(status)) { | | ~ | | | | | (7) following 'true' branch... | 162 | fail("Child died with signal %d\n", WTERMSIG(status)); | | ~ | | | | | (8) ...to here | | (9) calling '_fail' from '_check_wait_status' | +--> '_fail': events 10-11 | |utils.c:90:6: | 90 | void _fail(const char *format, ...) | | ^ | | | | | (10) entry to '_fail' |...... | 111 | exit(1); | | ~ | | | | | (11) call to 'exit' from within signal handler | utils.c:111:9: note: '_exit' is a possible signal-safe alternative for 'exit' 111 | exit(1); | ^ CCLD dtls-stress tls13/ocsp-client.c: In function 'doit': tls13/ocsp-client.c:137:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |tls13/ocsp-client.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(clicred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-17 | |tls13/ocsp-client.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 134 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 135 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | tls13/ocsp-client.c:138:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |tls13/ocsp-client.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(clicred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-19 | |tls13/ocsp-client.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 134 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 135 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (18) ...to here | | (19) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | tls13/ocsp-client.c:152:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 152 | assert(fwrite(cli_ca3_cert_pem, 1, strlen(cli_ca3_cert_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |tls13/ocsp-client.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(clicred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |tls13/ocsp-client.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... |...... | 147 | certfile2 = get_tmpname(certname2); | | ~ ~ | | | | | | | (21) calling 'get_tmpname' from 'doit' | | (20) ...to here | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-30 | |tls13/ocsp-client.c:147:21: | 147 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 148 | | 149 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (26) opened here | 150 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (28) following 'false' branch... | 151 | fail("error in fopen\n"); | 152 | assert(fwrite(cli_ca3_cert_pem, 1, strlen(cli_ca3_cert_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (26) | tls13/ocsp-client.c:153:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 153 | assert(fwrite(cli_ca3_key_pem, 1, strlen(cli_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |tls13/ocsp-client.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(clicred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |tls13/ocsp-client.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... |...... | 147 | certfile2 = get_tmpname(certname2); | | ~ ~ | | | | | | | (21) calling 'get_tmpname' from 'doit' | | (20) ...to here | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-32 | |tls13/ocsp-client.c:147:21: | 147 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 148 | | 149 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (26) opened here | 150 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (28) following 'false' branch... | 151 | fail("error in fopen\n"); | 152 | assert(fwrite(cli_ca3_cert_pem, 1, strlen(cli_ca3_cert_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 153 | assert(fwrite(cli_ca3_key_pem, 1, strlen(cli_ca3_key_pem), fp)>0); | | ~ | | | | | (31) ...to here | | (32) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (26) | tls13/ocsp-client.c:166:9: warning: leak of FILE 'fopen (get_tmpname (&certname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 166 | assert(fwrite(cert_pem, 1, strlen((char*)cert_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |tls13/ocsp-client.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(clicred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |tls13/ocsp-client.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... |...... | 147 | certfile2 = get_tmpname(certname2); | | ~ ~ | | | | | | | (21) calling 'get_tmpname' from 'doit' | | (20) ...to here | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-34 | |tls13/ocsp-client.c:147:21: | 147 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 150 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 151 | fail("error in fopen\n"); | 152 | assert(fwrite(cli_ca3_cert_pem, 1, strlen(cli_ca3_cert_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 153 | assert(fwrite(cli_ca3_key_pem, 1, strlen(cli_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 154 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 157 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 158 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 159 | index1 = ret; | | ~ | | | | | (33) ...to here |...... | 162 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (34) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 35-37 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (35) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (36) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (37) ...to here | <------+ | 'doit': events 38-43 | |tls13/ocsp-client.c:162:21: | 162 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (38) returning to 'doit' from 'get_tmpname' | 163 | fp = fopen(certfile3, "wb"); | | ~ | | | | | (39) opened here | 164 | if (fp == NULL) | | ~ | | | | | (40) assuming 'fopen (get_tmpname (&certname3), "wb")' is non-NULL | | (41) following 'false' branch... | 165 | fail("error in fopen\n"); | 166 | assert(fwrite(cert_pem, 1, strlen((char*)cert_pem), fp)>0); | | ~ | | | | | (42) ...to here | | (43) 'fopen (get_tmpname (&certname3), "wb")' leaks here; was opened at (39) | tls13/ocsp-client.c:167:9: warning: leak of FILE 'fopen (get_tmpname (&certname3), "wb")' [CWE-775] [-Wanalyzer-file-leak] 167 | assert(fwrite(key_pem, 1, strlen((char*)key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |tls13/ocsp-client.c:105:6: | 105 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 126 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 127 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 128 | | 129 | gnutls_certificate_set_flags(clicred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here | 130 | | 131 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |tls13/ocsp-client.c:131:21: | 131 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 135 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 136 | fail("error in fopen\n"); | 137 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 138 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 139 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 143 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... |...... | 147 | certfile2 = get_tmpname(certname2); | | ~ ~ | | | | | | | (21) calling 'get_tmpname' from 'doit' | | (20) ...to here | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-34 | |tls13/ocsp-client.c:147:21: | 147 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' |...... | 150 | if (fp == NULL) | | ~ | | | | | (26) following 'false' branch... | 151 | fail("error in fopen\n"); | 152 | assert(fwrite(cli_ca3_cert_pem, 1, strlen(cli_ca3_cert_pem), fp)>0); | | ~ | | | | | (27) ...to here | | (28) following 'true' branch... | 153 | assert(fwrite(cli_ca3_key_pem, 1, strlen(cli_ca3_key_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 154 | fclose(fp); | | ~ | | | | | (31) ...to here |...... | 157 | if (ret < 0) | | ~ | | | | | (32) following 'false' branch... | 158 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 159 | index1 = ret; | | ~ | | | | | (33) ...to here |...... | 162 | certfile3 = get_tmpname(certname3); | | ~ | | | | | (34) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 35-37 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (35) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (36) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (37) ...to here | <------+ | 'doit': events 38-45 | |tls13/ocsp-client.c:162:21: | 162 | certfile3 = get_tmpname(certname3); | | ^ | | | | | (38) returning to 'doit' from 'get_tmpname' | 163 | fp = fopen(certfile3, "wb"); | | ~ | | | | | (39) opened here | 164 | if (fp == NULL) | | ~ | | | | | (40) assuming 'fopen (get_tmpname (&certname3), "wb")' is non-NULL | | (41) following 'false' branch... | 165 | fail("error in fopen\n"); | 166 | assert(fwrite(cert_pem, 1, strlen((char*)cert_pem), fp)>0); | | ~ | | | | | (42) ...to here | | (43) following 'true' branch... | 167 | assert(fwrite(key_pem, 1, strlen((char*)key_pem), fp)>0); | | ~ | | | | | (44) ...to here | | (45) 'fopen (get_tmpname (&certname3), "wb")' leaks here; was opened at (39) | tls13/multi-ocsp.c: In function 'doit': tls13/multi-ocsp.c:145:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 145 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |tls13/multi-ocsp.c:115:6: | 115 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 134 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 135 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 136 | | 137 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 140 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-17 | |tls13/multi-ocsp.c:140:21: | 140 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' | 141 | | 142 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 143 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 144 | fail("error in fopen\n"); | 145 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | tls13/multi-ocsp.c:146:9: warning: leak of FILE 'fopen (get_tmpname (&certname1), "wb")' [CWE-775] [-Wanalyzer-file-leak] 146 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |tls13/multi-ocsp.c:115:6: | 115 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 134 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 135 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 136 | | 137 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 140 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-19 | |tls13/multi-ocsp.c:140:21: | 140 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' | 141 | | 142 | fp = fopen(certfile1, "wb"); | | ~ | | | | | (13) opened here | 143 | if (fp == NULL) | | ~ | | | | | (14) assuming 'fopen (get_tmpname (&certname1), "wb")' is non-NULL | | (15) following 'false' branch... | 144 | fail("error in fopen\n"); | 145 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 146 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (18) ...to here | | (19) 'fopen (get_tmpname (&certname1), "wb")' leaks here; was opened at (13) | tls13/multi-ocsp.c:161:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 161 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |tls13/multi-ocsp.c:115:6: | 115 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 134 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 135 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 136 | | 137 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 140 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |tls13/multi-ocsp.c:140:21: | 140 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 143 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 144 | fail("error in fopen\n"); | 145 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 146 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 147 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 151 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 152 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 153 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 156 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-30 | |tls13/multi-ocsp.c:156:21: | 156 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 157 | | 158 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (26) opened here | 159 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (28) following 'false' branch... | 160 | fail("error in fopen\n"); | 161 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (26) | tls13/multi-ocsp.c:162:9: warning: leak of FILE 'fopen (get_tmpname (&certname2), "wb")' [CWE-775] [-Wanalyzer-file-leak] 162 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | ^ 'main': events 1-2 | |utils.c:230:5: | 230 | int main(int argc, char *argv[]) | | ^ | | | | | (1) entry to 'main' |...... | 249 | doit(); | | ~ | | | | | (2) calling 'doit' from 'main' | +--> 'doit': events 3-8 | |tls13/multi-ocsp.c:115:6: | 115 | void doit(void) | | ^ | | | | | (3) entry to 'doit' |...... | 134 | assert(gnutls_certificate_allocate_credentials(&xcred) >= 0); | | ~ | | | | | (4) following 'true' branch... | 135 | assert(gnutls_certificate_allocate_credentials(&clicred) >= 0); | | ~ | | | | | (5) ...to here | | (6) following 'true' branch... | 136 | | 137 | gnutls_certificate_set_flags(xcred, GNUTLS_CERTIFICATE_API_V2); | | ~ | | | | | (7) ...to here |...... | 140 | certfile1 = get_tmpname(certname1); | | ~ | | | | | (8) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 9-11 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (9) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (10) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (11) ...to here | <------+ | 'doit': events 12-21 | |tls13/multi-ocsp.c:140:21: | 140 | certfile1 = get_tmpname(certname1); | | ^ | | | | | (12) returning to 'doit' from 'get_tmpname' |...... | 143 | if (fp == NULL) | | ~ | | | | | (13) following 'false' branch... | 144 | fail("error in fopen\n"); | 145 | assert(fwrite(server_localhost_ca3_cert_chain_pem, 1, strlen(server_localhost_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (14) ...to here | | (15) following 'true' branch... | 146 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (16) ...to here | | (17) following 'true' branch... | 147 | fclose(fp); | | ~ | | | | | (18) ...to here |...... | 151 | if (ret < 0) | | ~ | | | | | (19) following 'false' branch... | 152 | fail("set_x509_key_file failed: %s\n", gnutls_strerror(ret)); | 153 | index1 = ret; | | ~ | | | | | (20) ...to here |...... | 156 | certfile2 = get_tmpname(certname2); | | ~ | | | | | (21) calling 'get_tmpname' from 'doit' | +--> 'get_tmpname': events 22-24 | |utils.c:280:7: | 280 | char *get_tmpname(char s[TMPNAME_SIZE]) | | ^ | | | | | (22) entry to 'get_tmpname' |...... | 289 | if (ret < 0) | | ~ | | | | | (23) following 'true' branch... | 290 | return NULL; | | ~ | | | | | (24) ...to here | <------+ | 'doit': events 25-32 | |tls13/multi-ocsp.c:156:21: | 156 | certfile2 = get_tmpname(certname2); | | ^ | | | | | (25) returning to 'doit' from 'get_tmpname' | 157 | | 158 | fp = fopen(certfile2, "wb"); | | ~ | | | | | (26) opened here | 159 | if (fp == NULL) | | ~ | | | | | (27) assuming 'fopen (get_tmpname (&certname2), "wb")' is non-NULL | | (28) following 'false' branch... | 160 | fail("error in fopen\n"); | 161 | assert(fwrite(server_localhost6_ca3_cert_chain_pem, 1, strlen(server_localhost6_ca3_cert_chain_pem), fp)>0); | | ~ | | | | | (29) ...to here | | (30) following 'true' branch... | 162 | assert(fwrite(server_ca3_key_pem, 1, strlen((char*)server_ca3_key_pem), fp)>0); | | ~ | | | | | (31) ...to here | | (32) 'fopen (get_tmpname (&certname2), "wb")' leaks here; was opened at (26) | make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/tests' make check-TESTS make[3]: Entering directory '/build/gnutls/src/gnutls-3.7.8/tests' make[4]: Entering directory '/build/gnutls/src/gnutls-3.7.8/tests' PASS: tls13/supported_versions PASS: tls13/anti_replay PASS: tls12-check-rollback-val PASS: tls12-rollback-detection PASS: tls13/prf PASS: tls11-check-rollback-val PASS: tls11-rollback-detection PASS: tls13/tls12-no-tls13-exts PASS: tls13/post-handshake-without-cert PASS: tls13/prf-early PASS: tls13/cookie PASS: tls13/post-handshake-with-psk PASS: tls13/psk-ext PASS: tls13/post-handshake-with-cert-auto PASS: tls13/post-handshake-with-cert PASS: tls13/compress-cert-neg PASS: tls13/compress-cert-neg2 PASS: tls13/hello_retry_request PASS: tls13/hello_retry_request_resume PASS: tls13/compress-cert-cli PASS: tls13/post-handshake-with-cert-ticket PASS: tls13/multi-ocsp PASS: tls13/compress-cert PASS: tls13/no-psk-exts PASS: tls13/key_update_multiple PASS: tls13/key_limits PASS: tls13/psk-dumbfw PASS: simple PASS: tls13/change_cipher_spec PASS: tls13/psk-ke-modes PASS: gnutls_hmac_fast PASS: tls13/ocsp-client PASS: certuniqueid PASS: cert PASS: tls13/no-auto-send-ticket PASS: mpi PASS: certificate_set_x509_crl PASS: parse_ca PASS: dn PASS: x509-dn PASS: set_pkcs12_cred PASS: x509-dn-decode PASS: hostname-check PASS: cve-2008-4989 PASS: pkcs12_s2k PASS: tls13/key_share PASS: tls-neg-ext-key PASS: tls13-early-start PASS: missingissuer_aia PASS: record-sizes-range PASS: x509sign-verify PASS: cve-2009-1415 SKIP: ssl30-server-kx-neg PASS: cve-2009-1416 PASS: sign-verify SKIP: ssl30-cipher-neg PASS: init_roundtrip PASS: chainverify PASS: crq_apis PASS: record-sizes PASS: pkcs12_s2k_pem PASS: crq_key_id PASS: dn2 PASS: x509_altname PASS: nul-in-x509-names PASS: missingissuer PASS: rng-fork PASS: gnutls_session_set_id PASS: mini-eagain-dtls PASS: mini-x509 PASS: tls12-rehandshake-cert-3 PASS: empty_retrieve_function PASS: gnutls_ext_raw_parse PASS: x509cert PASS: handshake-large-cert PASS: tls13-cipher-neg PASS: tls13-rehandshake-cert PASS: x509cert-ct PASS: x509cert-tl PASS: tls11-cipher-neg PASS: tls10-cipher-neg PASS: infoaccess PASS: resume-dtls PASS: trustdb-tofu PASS: sign-verify-ed25519-rfc8080 PASS: mini-dtls-hello-verify PASS: mini-alpn PASS: mini-dtls-large PASS: mini-termination PASS: pkcs12_simple PASS: chainverify-unsorted PASS: mini-x509-2 PASS: mini-x509-cas PASS: tls10-server-kx-neg PASS: key-openssl PASS: mini-overhead PASS: mini-x509-callbacks PASS: mini-dtls-heartbeat PASS: priorities PASS: priorities-groups PASS: gnutls_x509_crt_list_import PASS: time PASS: tls11-server-kx-neg PASS: gnutls_x509_privkey_import PASS: tls12-cipher-neg PASS: rsa-encrypt-decrypt PASS: mini-emsgsize-dtls PASS: sign-verify-ext4 PASS: gnutls-strcodes PASS: mini-dtls-srtp PASS: x509-server-verify PASS: resume-lifetime PASS: mini-dtls-record PASS: mini-record-range SKIP: fips-mode-pthread PASS: global-init PASS: sec-params PASS: rsa-psk PASS: handshake-timeout PASS: tls12-server-kx-neg SKIP: fips-override-test SKIP: fips-test PASS: sign-verify-data PASS: tls-neg-ext4-key PASS: name-constraints PASS: cert-status PASS: x509-extensions PASS: mini-global-load PASS: mini-x509-callbacks-intr PASS: mini-dtls-lowmtu PASS: crlverify PASS: mini-dtls-discard PASS: tls12-rehandshake-cert-2 PASS: custom-urls PASS: openconnect-dtls12 PASS: set_x509_key_file-late PASS: set_x509_key_mem PASS: x509-verify-with-crl PASS: mini-chain-unsorted PASS: mini-record-failure PASS: set_x509_key_file PASS: tls12-rehandshake-cert-auto PASS: tls13/key_update PASS: long-session-id PASS: mini-dtls-mtu PASS: privkey-verify-broken PASS: key-import-export PASS: sign-is-secure PASS: pubkey-import-export PASS: tls12-rehandshake-set-prio PASS: priority-set PASS: tls-pthread PASS: priority-set2 PASS: mini-dtls-record-asym PASS: spki-abstract PASS: x509cert-invalid PASS: mini-record PASS: duplicate-extensions PASS: mini-dtls0-9 PASS: mini-key-material PASS: tls-supplemental PASS: tls-ext-register PASS: spki PASS: tls-etm PASS: tls12-invalid-key-exchanges PASS: client-sign-md5-rep PASS: alerts PASS: tls-force-etm PASS: mini-dtls-fork PASS: gnutls_ocsp_resp_list_import2 PASS: session-rdn-read PASS: server-sign-md5-rep PASS: x509-cert-callback PASS: mini-server-name PASS: x509-cert-callback-ocsp PASS: pkcs7-gen PASS: rsa-rsa-pss PASS: dtls-etm PASS: mini-tls-nonblock PASS: cipher-alignment PASS: oids PASS: atfork PASS: prf PASS: priority-init2 PASS: post-client-hello-change-prio PASS: status-request PASS: status-request-ok PASS: dtls-pthread PASS: no-signal PASS: rfc7633-missing PASS: sign-verify-ext PASS: pkcs8-key-decode PASS: urls PASS: fallback-scsv PASS: key-usage-rsa PASS: key-usage-ecdhe-rsa PASS: rfc7633-ok PASS: mini-session-verify-function PASS: auto-verify PASS: set-default-prio PASS: privkey-keygen PASS: tls12-anon-upgrade PASS: tlsext-decoding PASS: rsa-psk-cb PASS: gnutls-ids PASS: rehandshake-switch-cert PASS: rehandshake-switch-cert-allow PASS: rehandshake-switch-cert-client PASS: rehandshake-switch-cert-client-allow PASS: handshake-versions PASS: record-timeouts PASS: dtls-handshake-versions PASS: dtls-max-record PASS: tls12-max-record PASS: alpn-server-prec PASS: ocsp-filename-memleak PASS: dh-params PASS: pcert-list PASS: rehandshake-ext-secret PASS: pkcs12_encode PASS: psk-file PASS: session-export-funcs PASS: name-constraints-merge PASS: key-material-set-dtls PASS: crl-basic PASS: key-material-dtls PASS: crq-basic PASS: version-checks PASS: custom-urls-override PASS: hex PASS: x509sign-verify-gost PASS: base64 PASS: srpbase64 PASS: tls13-cert-key-exchange PASS: pkcs1-digest-info PASS: rehandshake-switch-srp-id PASS: set_x509_key_file_der PASS: set_x509_key PASS: set_x509_pkcs12_key PASS: crt_apis PASS: rehandshake-switch-psk-id SKIP: ssl30-cert-key-exchange PASS: send-client-cert PASS: x509-cert-callback-legacy PASS: keylog-env PASS: tls11-cert-key-exchange PASS: tls10-cert-key-exchange PASS: ssl2-hello PASS: tlsfeature-ext PASS: dtls10-cert-key-exchange PASS: tlsfeature-crt PASS: resume-with-false-start PASS: dtls12-cert-key-exchange PASS: dtls-session-ticket-lost PASS: set_x509_key_file_ocsp PASS: dtls-rehandshake-cert-3 PASS: rng-pthread PASS: client-fastopen PASS: safe-renegotiation/srn0 PASS: safe-renegotiation/srn1 PASS: mini-dtls-hello-verify-48 PASS: safe-renegotiation/srn3 PASS: tls12-cert-key-exchange PASS: safe-renegotiation/srn2 PASS: rsa-illegal-import PASS: safe-renegotiation/srn5 PASS: safe-renegotiation/srn4 PASS: set_x509_ocsp_multi_invalid PASS: rng-sigint PASS: set_key PASS: set_x509_ocsp_multi_unknown PASS: set_x509_key_file_ocsp_multi2 PASS: set_x509_ocsp_multi_pem PASS: set_key_utf8 PASS: tls-ext-not-in-dtls PASS: insecure_key PASS: server_ecdsa_key PASS: set_x509_key_utf8 PASS: dtls-rehandshake-anon PASS: client_dsa_key PASS: handshake-large-packet PASS: pkcs7-cat-parse PASS: multi-alerts PASS: tls-session-ext-register PASS: handshake-false-start PASS: naked-alerts PASS: tls-session-supplemental PASS: x509sign-verify-ecdsa PASS: session-tickets-missing PASS: session-tickets-ok PASS: status-request-ext PASS: set_x509_key_file_legacy PASS: gnutls_x509_crt_sign PASS: rng-no-onload PASS: mini-loss-time PASS: gnutls_x509_crq_sign PASS: hostname-check-utf8 PASS: crl_apis PASS: no-extensions PASS: pkcs8-key-decode-encrypted PASS: cert_verify_inv_utf8 PASS: pkcs7 PASS: priority-mix PASS: crt_inv_write PASS: x509sign-verify-error PASS: send-data-before-handshake PASS: recv-data-before-handshake PASS: x509-dn-decode-compat PASS: ip-check PASS: mini-x509-ipaddr PASS: srp PASS: base64-raw PASS: random-art PASS: trust-store PASS: dtls1-2-mtu-check PASS: dss-sig-val PASS: sign-pk-api PASS: tls-session-ext-override PASS: dhex509self PASS: record-pad PASS: dtls-repro-20170915 PASS: gnutls_ext_raw_parse_dtls PASS: key-export-pkcs8 PASS: null_retrieve_function PASS: tls13-server-kx-neg PASS: resume-with-stek-expiration PASS: rawpk-api PASS: tls-record-size-limit PASS: resume-with-previous-stek PASS: x509sign-verify-rsa PASS: dh-compute PASS: ecdh-compute PASS: sign-verify-data-newapi PASS: sign-verify-deterministic PASS: iov PASS: tls-record-size-limit-asym PASS: sign-verify-newapi PASS: aead-cipher-vec PASS: set_known_dh_params_anon PASS: buffer PASS: tls13-without-timeout-func PASS: kdf-api PASS: keylog-func PASS: tls-crt_type-neg PASS: x509cert-dntypes PASS: set_x509_ocsp_multi_cli PASS: status-request-revoked PASS: handshake-write PASS: id-on-xmppAddr PASS: x509-upnconstraint PASS: cipher-padding PASS: ciphersuite-name PASS: pkcs7-verify-double-free PASS: set_known_dh_params_psk PASS: tls13-compat-mode SKIP: fips-rsa-sizes PASS: dtls-rehandshake-cert PASS: system-prio-file PASS: strict-der PASS: pkcs11-cert-import-url-exts PASS: pkcs11-get-raw-issuer-exts PASS: pkcs11-cert-import-url4-exts PASS: pkcs11-get-exts PASS: set_known_dh_params_x509 SKIP: pkcs11/pkcs11-is-known SKIP: pkcs11/pkcs11-chainverify SKIP: pkcs11/pkcs11-get-issuer SKIP: pkcs11/pkcs11-privkey SKIP: pkcs11/pkcs11-combo SKIP: pkcs11/pkcs11-pubkey-import-ecdsa PASS: pkcs11-import-url-privkey SKIP: pkcs11/pkcs11-pubkey-import-rsa SKIP: pkcs11/pkcs11-ec-privkey-test PASS: pkcs11-privkey-fork PASS: pkcs11-privkey-always-auth PASS: pkcs11-privkey-export SKIP: pkcs11/pkcs11-obj-import SKIP: pkcs11/pkcs11-import-with-pin PASS: pkcs11/pkcs11-pin-func PASS: pkcs11-privkey-fork-reinit PASS: pkcs11-mechanisms PASS: pkcs11-privkey-safenet-always-auth SKIP: pkcs11/pkcs11-rsa-pss-privkey-test PASS: pkcs11/pkcs11-privkey-pthread SKIP: pkcs11/pkcs11-privkey-generate SKIP: pkcs11/gnutls_x509_crt_list_import_url SKIP: pkcs11/gnutls_pcert_list_import_x509_file SKIP: pkcs11/tls-neg-pkcs11-key PASS: pkcs11-token-raw SKIP: pkcs11/pkcs11-eddsa-privkey-test PASS: pkcs11-obj-raw PASS: pkcs11-import-url-privkey-caps PASS: ocsp PASS: openssl PASS: setcredcrash PASS: dhepskself PASS: x509self PASS: x509dn PASS: tls-channel-binding PASS: anonself PASS: pskself PASS: pskself2 PASS: tls12-resume-psk PASS: tls13-resume-psk PASS: tls13-early-data-neg PASS: tls13-early-data-neg2 SKIP: tls13/post-handshake-with-cert-pkcs11 PASS: tls13-early-data PASS: tls12-resume-anon PASS: tls13-resume-x509 PASS: resume-with-record-size-limit SKIP: pkcs11/tls-neg-pkcs11-no-key PASS: global-init-override PASS: record-sendfile SKIP: rsa-md5-collision/rsa-md5-collision.sh SKIP: tpm2.sh SKIP: starttls.sh PASS: tls12-resume-x509 SKIP: starttls-ftp.sh SKIP: starttls-smtp.sh SKIP: starttls-lmtp.sh SKIP: starttls-pop3.sh SKIP: starttls-xmpp.sh SKIP: starttls-nntp.sh SKIP: starttls-sieve.sh SKIP: ocsp-tests/ocsp-tls-connection.sh SKIP: ocsp-tests/ocsp-must-staple-connection.sh SKIP: ocsp-tests/ocsp-test.sh SKIP: server-multi-keys.sh PASS: pkgconfig.sh SKIP: ocsp-tests/ocsp-load-chain.sh PASS: tls12-ffdhe SKIP: gnutls-cli-debug.sh PASS: dtls-rehandshake-cert-2 PASS: psktool.sh SKIP: cert-reencoding.sh SKIP: pkcs7-cat.sh PASS: dtls/dtls-resume.sh PASS: dtls/dtls.sh PASS: rng-op-key PASS: rng-op-nonce PASS: rng-op-random SKIP: server-weak-keys.sh SKIP: ocsp-tests/ocsp-signer-verify.sh PASS: cfg-test.sh PASS: ocsp-tests/ocsptool.sh PASS: system-override-sig.sh PASS: system-override-hash.sh PASS: record-retvals PASS: cipher-listings.sh PASS: sanity-lib.sh SKIP: system-override-profiles.sh SKIP: system-override-tls.sh FAIL: serv-udp.sh FAIL: fastopen.sh PASS: system-override-sig-tls.sh FAIL: sni-hostname.sh PASS: system-override-sig-allowlist.sh PASS: system-override-hash-allowlist.sh PASS: system-override-hash-filters-prf.sh FAIL: gnutls-cli-save-data.sh FAIL: sni-resume.sh PASS: system-override-special-allowlist.sh SKIP: gnutls-cli-self-signed.sh SKIP: gnutls-cli-invalid-crl.sh PASS: mini-record-2 PASS: system-override-invalid.sh PASS: system-override-versions.sh SKIP: testpkcs11.sh SKIP: certtool-pkcs11.sh SKIP: p11-kit-load.sh PASS: logfile-option.sh PASS: gnutls-cli-resume.sh PASS: profile-tests.sh PASS: system-override-curves.sh PASS: system-override-kx.sh PASS: system-override-default-priority-string.sh PASS: system-override-versions-allowlist.sh PASS: gnutls-cli-rawpk.sh PASS: dh-fips-approved.sh PASS: systemkey.sh PASS: rfc2253-escape-test.sh PASS: long-crl.sh PASS: protocol-set-allowlist.sh PASS: system-override-curves-allowlist.sh PASS: p11-kit-trust.sh ============================================================================ Testsuite summary for GnuTLS 3.7.8 ============================================================================ # TOTAL: 486 # PASS: 429 # SKIP: 52 # XFAIL: 0 # FAIL: 5 # XPASS: 0 # ERROR: 0 ============================================================================ See tests/test-suite.log Please report to bugs@gnutls.org ============================================================================ make[4]: *** [Makefile:9344: test-suite.log] Error 1 make[4]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/tests' make[3]: *** [Makefile:9452: check-TESTS] Error 2 make[3]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/tests' make[2]: *** [Makefile:12638: check-am] Error 2 make[2]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/tests' make[1]: *** [Makefile:9236: check-recursive] Error 1 make[1]: Leaving directory '/build/gnutls/src/gnutls-3.7.8/tests' make: *** [Makefile:2257: check-recursive] Error 1 ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix22/build receiving incremental file list gnutls-3.7.8-1-riscv64-build.log gnutls-3.7.8-1-riscv64-check.log sent 62 bytes received 409,368 bytes 116,980.00 bytes/sec total size is 9,850,689 speedup is 24.06