Don't accept over 64 probes.
The code is limited to 64 probes for now, so don't accept setting the probe limit to higher than that. See bug 194.
This commit is contained in:
parent
e4c8a4d7cb
commit
6c57446d41
|
@ -318,6 +318,9 @@ static int init(struct sr_input *in, const char *filename)
|
|||
if (num_probes < 1) {
|
||||
release_context(ctx);
|
||||
return SR_ERR;
|
||||
} else if (num_probes > 64) {
|
||||
sr_err("No more than 64 probes supported.");
|
||||
return SR_ERR;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue