Recherche avancée

Médias (0)

Mot : - Tags -/content

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (69)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (1860)

  • avfilter/vf_overlay : Fix double-free of AVFilterFormats on error

    7 août 2020, par Andreas Rheinhardt
    avfilter/vf_overlay : Fix double-free of AVFilterFormats on error
    

    The query_formats function of the overlay filter tries to allocate
    two lists (only one in a special case) of formats which on success
    are attached to more permanent objects (AVFilterLinks) for storage
    afterwards. If attaching a list to an AVFilterLink succeeds, it is
    in turn owned by the AVFilterLink (or more exactly, the AVFilterLink
    becomes one of the common owners of the list). Yet if attaching a list
    to one of its links succeeds and an error happens lateron, both lists
    were manually freed, whic is wrong if the list is already owned by one
    or more links ; these links' pointers to their lists will become dangling
    and there will be a double-free/use-after-free when these links are
    cleaned up automatically.

    This commit fixes this by removing the custom freeing code ; this will
    temporarily add a leaking codepath (if attaching a list not already
    owned by a link to a link fails, the list will leak), but this will
    be fixed soon by making sure that an AVFilterFormats without owner will
    be automatically freed when attaching it to an AVFilterLink fails.
    Notice that at most one list leaks because a new list is only allocated
    after the old list has been successfully attached to a link.

    Reviewed-by : Nicolas George <george@nsup.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavfilter/vf_overlay.c
  • avfilter/vf_remap : Fix double-free of AVFilterFormats on error

    7 août 2020, par Andreas Rheinhardt
    avfilter/vf_remap : Fix double-free of AVFilterFormats on error
    

    The query_formats function of the remap filter tries to allocate
    two lists of formats which on success are attached to more permanent objects
    (AVFilterLinks) for storage afterwards. If attaching a list to an
    AVFilterLink succeeds, it is in turn owned by the AVFilterLink (or more
    exactly, the AVFilterLink becomes one of the common owners of the list).
    Yet if attaching a list to one of its links succeeds and an error happens
    lateron, both lists were manually freed, which means that is wrong if the
    list is already owned by one or more links ; these links' pointers to
    their lists will become dangling and there will be a double-free/use-after-
    free when these links are cleaned up automatically.

    This commit fixes this by removing the custom free code ; this will
    temporarily add a leaking codepath (if attaching a list not already
    owned by a link to a link fails, the list will leak), but this will
    be fixed soon by making sure that an AVFilterFormats without owner will
    be automatically freed when attaching it to an AVFilterLink fails.
    Notice at most one list leaks because a new list is only allocated
    after the old list has been successfully attached to a link.

    Reviewed-by : Nicolas George <george@nsup.org>
    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavfilter/vf_remap.c
  • avfilter/vf_showpalette : Fix double-free of AVFilterFormats on error

    7 août 2020, par Andreas Rheinhardt
    avfilter/vf_showpalette : Fix double-free of AVFilterFormats on error
    

    The query_formats function of the showpalette filter tries to allocate
    two lists of formats which on success are attached to more permanent objects
    (AVFilterLinks) for storage afterwards. If attaching a list to an
    AVFilterLink succeeds, the link becomes one (in this case the only one)
    of the owners of the list. Yet if attaching the first list to its link
    succeeds and attaching the second list fails, both lists were manually
    freed, which means that the first link's pointer to the first list
    becomes dangling and there will be a double-free when the first link is
    cleaned up automatically.

    This commit fixes this by removing the custom free code ; this will
    temporarily add a leaking codepath (if attaching a list to a link fails,
    the list will leak), but this will be fixed shortly by making sure that
    an AVFilterFormats without owner will be automatically freed when
    attaching it to an AVFilterLink fails. Notice at most one list leaks
    because as of this commit a new list is only allocated after the old list
    has been successfully attached to a link.

    Reviewed-by : Nicolas George <george@nsup.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavfilter/vf_showpalette.c