Skip to content
  • Philip Withnall's avatar
    gapplication: Validate types of well-known platform data keys · c0eef5e2
    Philip Withnall authored
    
    
    The platform data comes from the parent process, which should normally
    be considered trusted (if we don’t trust it, it can do all sorts of
    other things to mess this process up, such as setting
    `LD_LIBRARY_PATH`).
    
    However, it can also come from any process which calls `CommandLine`
    over D-Bus, so always has to be able to handle untrusted input. In
    particular, `v`-typed `GVariant`s must always have their dynamic type
    validated before having values of a static type retrieved from them.
    
    Includes unit tests.
    
    Signed-off-by: default avatarPhilip Withnall <pwithnall@endlessos.org>
    
    Helps: #1904
    c0eef5e2