exprtk icon indicating copy to clipboard operation
exprtk copied to clipboard

Safe vector access

Open schoetbi opened this issue 1 year ago • 0 comments

Our users are not always careful when accessing vectors either for reading or even more dangerous for writing values. Therefore, I would like to restrict the accesses to vectors to be within valid bounds.

Since this costs some time to check at runtime I enable this function by defining exprtk_enable_vector_runtime_checks. When this define is not set, the old (unsecure) behavior is retained.

Runtime penalty: grafik

Please let me know if I can improve things.

schoetbi avatar Mar 28 '23 14:03 schoetbi