Commit 9aab39f7 authored by Jonathan Jenkins's avatar Jonathan Jenkins

check repetition id in codes-mapping

parent 2e250049
......@@ -160,6 +160,8 @@ void codes_mapping_get_lp_id(
}
// does group name match?
if (strcmp(lpg->name.ptr, group_name) == 0){
// sanity check rep_id
if (rep_id >= lpg->repetitions) goto ERROR;
tw_lpid local_lp_count = 0;
// for each lp type
for (int l = 0; l < lpg->lptypes_count; l++){
......
Markdown is supported
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