Skip to content

Fixed buffer overrun by rewriting Decode() method to be safer

Sean McBride requested to merge seanm/vtk:base64-overrun into master

Created new DecodeSafely() method that takes buffer lengths, which means we can be sure not to overrun any buffer.

Under ASan, we see that the vtkWebCorePython-TestDataEncoder test does indeed overrun a buffer with the old method.

Deprecated the old method.

Merge request reports