Skip to content
Snippets Groups Projects
  • Marvin Häuser's avatar
    0e1e8c65
    simulator: fix variadic iteration UB · 0e1e8c65
    Marvin Häuser authored
    The current logic calls va_arg() once after the actual last argument has
    been retrieved. While this should usually not cause real-world problems,
    it is undefined behaviour caught by AddressSanitizer.
    0e1e8c65
    History
    simulator: fix variadic iteration UB
    Marvin Häuser authored
    The current logic calls va_arg() once after the actual last argument has
    been retrieved. While this should usually not cause real-world problems,
    it is undefined behaviour caught by AddressSanitizer.