[vlc-devel] [PATCH] lib: media: rewrite recursion into list exhaustion

Rémi Denis-Courmont remi at remlab.net
Thu Jul 9 16:58:41 CEST 2020


Le jeudi 9 juillet 2020, 17:23:58 EEST Alexandre Janniaux a écrit :
> As the comment described it, recursion could lead to a stack overflow
> when parsing very long recursive playlist. Instead, use temporary
> dynamic allocation to chain the addition requests and process them in
> the same order.
> 
> The out-of-memory errors are only returned to the user as a log and the
> preparsed playlist item is truncated, which is non-optimal.

Looks ok.


-- 
Rémi Denis-Courmont




More information about the vlc-devel mailing list