Project

General

Profile

Actions

Bug #6280

open

base64: don't accept = in the middle of a string

Added by Shivani Bhardwaj 9 months ago. Updated 20 days ago.

Status:
Assigned
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

A string such as D=aB is invalid and should be rejected by the parser

Actions #1

Updated by Shivani Bhardwaj 26 days ago

  • Target version changed from TBD to 8.0.0-beta1

This needs a decision. Our parser would accept such a string in all modes as the string does not have any non base64 alphabet. On popular base64 decoders as well such a string is accepted but it is rejected by some parsers like Python's base64 library as it is incorrect to have padding bytes in the middle of a string.

Actions #2

Updated by Shivani Bhardwaj 20 days ago

@Philippe Antoine what do you think about this issue?

Actions #3

Updated by Philippe Antoine 20 days ago

Should be rejected in strict mode, not in others if it is accepted by popular base64 decoders

Actions

Also available in: Atom PDF