Uploaded image for project: 'Lucee Development'
  1. LDEV-555

BinaryDecode fails when decoding strings with = at end

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.2.010
    • Fix Version/s: 5.2.7.22
    • Labels:
    • Environment:

      Centos 6.7, Apache 2.2.15

    • Sprint:
      March 2018

      Description

      Coldfusion 9 and 10, and Railo 4.2 are all happy with the following, as is the decoder at https://www.base64decode.org/;

      BinaryDecode("aWQ9QkEtMzU3OSZ5PTIwMDEmbT1EQUtPVEEmeW1zPVBQJnVyZ2lkPU5ZMDImdmluPTNEN0hBMThONzJHMTc3Njg2=", "base64")

      Any number of = can be place at the end and they still happily decode the string.

      Lucee is throwing error 'can't decode the base64 input string [...], because the input string has an invalid length'. It will work only if you remove the '='. Obviously this is a simple fix so not a serious bug but could affect inter-system operability

        Attachments

          Activity

            People

            • Assignee:
              21solutions Igal Sapir
              Reporter:
              turtmcfly Ian Turton
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: