Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82189

QByteArray::fromBase64 can not handle concatenated base64 string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.6, 5.14.1
    • None
    • Linux/X11, Windows

    Description

      Run these 2 lines of code:

           qInfo() << QByteArray::fromBase64("SGVsbG8=");

           qInfo() << QByteArray::fromBase64("SGVsbG8=SGVsbG8="); 

      The result is:

           "Hello"

           "Hello\x12\x19[\x1B\x1B"

      Which is not as expected. The second line should print "HelloHello".

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            zc8424 chi zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes