Changes have been pushed for the repository "fawkesrobotics/fawkes".
Clone: https://github.com/fawkesrobotics/fawkes.git Gitweb: https://github.com/fawkesrobotics/fawkes The branch, common/gologpp has been updated to da42d8683eec58eb0cf52a0b765d8971a5afecbb (commit) from 77e077827d55060094a05e2187f42bdd2a93ed22 (commit) https://github.com/fawkesrobotics/fawkes/tree/common/gologpp Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - *Log* --------------------------------------------------------------- commit da42d8683eec58eb0cf52a0b765d8971a5afecbb Author: Till Hofmann <hofm...@kbsg.rwth-aachen.de> AuthorDate: Wed Nov 13 17:43:30 2019 +0100 Commit: Till Hofmann <hofm...@kbsg.rwth-aachen.de> CommitDate: Wed Nov 13 17:44:51 2019 +0100 gologpp: throw exception when converting nested list to interface field Our interface fields do not support nested lists, throw an exception to avoid erroneous data overwrites. https://github.com/fawkesrobotics/fawkes/commit/da42d8683 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *Summary* ----------------------------------------------------------- src/plugins/gologpp/utils.cpp | 3 +++ 1 file changed, 3 insertions(+) - *Diffs* ------------------------------------------------------------- - *commit* da42d8683eec58eb0cf52a0b765d8971a5afecbb - - - - - - - - - - Author: Till Hofmann <hofm...@kbsg.rwth-aachen.de> Date: Wed Nov 13 17:43:30 2019 +0100 Subject: gologpp: throw exception when converting nested list to interface field src/plugins/gologpp/utils.cpp | 3 +++ 1 file changed, 3 insertions(+) _Diff for modified files_: diff --git a/src/plugins/gologpp/utils.cpp b/src/plugins/gologpp/utils.cpp index 48395e04d..2140d640f 100644 --- a/src/plugins/gologpp/utils.cpp +++ b/src/plugins/gologpp/utils.cpp @@ -170,6 +170,9 @@ ValueToFieldVisitor::operator()(gologpp::CompoundType::Representation v) void ValueToFieldVisitor::operator()(gologpp::ListType::Representation v) { + if (index != 0) { + throw Exception("Invalid cast, cannot convert a list with an offset or nested lists"); + } for (size_t i = 0; i < v.size(); i++) { ValueToFieldVisitor visitor(field, i); boost::apply_visitor(visitor, v[i]->representation()); _______________________________________________ fawkes-commits mailing list fawkes-commits@lists.kbsg.rwth-aachen.de https://lists.kbsg.rwth-aachen.de/listinfo/fawkes-commits