Commit a01034e5 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Fix a segfault in the CGI script, reported by Denis.

* src/tgbaalgos/emptiness.cc
(emptiness_check_instantiator::construct): Set *err = 0
on success.  This avoids problem with the python bindings
always converting *err to a string and sometimes failing
to do so when err was not initialized.
parent 187997fe
2012-03-09 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix a segfault in the CGI script, reported by Denis.
* src/tgbaalgos/emptiness.cc
(emptiness_check_instantiator::construct): Set *err = 0
on success. This avoids problem with the python bindings
always converting *err to a string and sometimes failing
to do so when err was not initialized.
2012-03-08 Alexandre Duret-Lutz <adl@lrde.epita.fr>
ltl2tgba.html: Fix initialization of unset options on reload.
......
// Copyright (C) 2009, 2011 Laboratoire de Recherche et Dveloppement
// de l'Epita (LRDE).
// Copyright (C) 2009, 2011, 2012 Laboratoire de Recherche et
// Dveloppement de l'Epita (LRDE).
// Copyright (C) 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
// dpartement Systmes Rpartis Coopratifs (SRC), Universit Pierre
// et Marie Curie.
......@@ -273,7 +273,10 @@ namespace spot
ec_algo* info = ec_algos;
for (unsigned i = 0; i < sizeof(ec_algos)/sizeof(*ec_algos); ++i, ++info)
if (n == info->name)
return new emptiness_check_instantiator(o, info);
{
*err = 0;
return new emptiness_check_instantiator(o, info);
}
*err = name;
return 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment