nasa / bplib

Apache License 2.0
27 stars 13 forks source link

Attributes must be validated in bplib_open #56

Open jpswinski opened 4 years ago

jpswinski commented 4 years ago

It is possible to supply 0xFFFFFFFF (or -1) to the timeout attribute passed into the bplib_open call and create a channel with a negative timeout. This should be caught in bplib_open and rejected.

There are probably other attributes that need to be checked that could cause the code to improperly behave.