cvs base64:ascii bug

Started by Allen Miglore, November 13, 2022, 11:13:25 AM

Previous topic - Next topic

Allen Miglore

I think there is a bug in the cvs() base64 decode function.  If the input data ends with a newline, an extra $00$ is added to the decoded data.  I tested this in pxplus 14 and pxplus 19.

a$=cvs("test","ascii:base64")
print hta(cvs(a$,"base64:ascii"))
74657374
print hta(cvs(a$+$0a$,"base64:ascii"))
7465737400

Devon Austen

I think you are right and that is a bug.

Please create a helpdesk ticket so we can properly track the bug and let you know when a fix is available.
Principal Software Engineer for PVX Plus Technologies LTD.