[vlc-devel] [PATCH] vlc_strftime: avoid infinite loop on windows when format string is invalid

Pierre Lamot pierre at videolabs.io
Thu Jan 25 17:24:44 CET 2018

> The problem is not really specific to Windows, is it? You cannot rely on
> Windows or glibc extensions then (and I don't see why you would need to
> either but I have not tried).

The problem depends upon the implementation of strftime. Posix states that the 
behavior is undefined if a conversion character is unknown  

- glibc leave unrecognised % chars in the output string. 
- windows reject invalid format strings. but notify through errno. 

But I guess some implementations won't gives us solutions.

The issue can be seen on windows when changing the text of the marquee filter.

Pierre Lamot

More information about the vlc-devel mailing list