[vlc-devel] [PATCH 00/12] Reduce VLAs usages

Hugo Beauzée-Luyssen hugo at beauzee.fr
Tue Dec 8 15:19:04 CET 2020


Since C11, Variable Length Arrays are an optional feature.
This patchset aims at reducing their usage in order to support compilers
that choose not to implement it

Hugo Beauzée-Luyssen (12):
  config: chain: Don't use VLA
  actions: Avoid VLA
  input: stream: Avoid VLA
  filter_chain: Avoid VLA
  misc: message: Remove VLA usage
  picture_pool: Don't use VLAs
  http_auth: Remove VLA usages
  input: subtitles: Remove use of VLA
  network: io: Remove VLA usages
  preparser: art: Use strdup instead of a VLA
  config: file: Don't use VLAs
  lib: core: Don't use VLAs

 lib/core.c              |  6 +++++-
 src/config/chain.c      | 25 ++++++++++++++++++-------
 src/config/file.c       | 10 ++++++++--
 src/input/stream.c      |  4 ++--
 src/input/subtitles.c   | 22 +++++++++++++++++++---
 src/misc/actions.c      |  6 ++++--
 src/misc/filter_chain.c |  6 ++++--
 src/misc/messages.c     |  6 +++++-
 src/misc/picture_pool.c | 12 ++++++++++--
 src/network/http_auth.c | 34 ++++++++++++++++++----------------
 src/network/io.c        |  7 ++++++-
 src/preparser/art.c     |  6 ++++--
 12 files changed, 103 insertions(+), 41 deletions(-)

-- 
2.29.2



More information about the vlc-devel mailing list