MIME base64 decoding very limited in file name length

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

MIME base64 decoding very limited in file name length

Post by *HAL 9000 »

TC7.50RC2

example file name:

"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.1.2.jpg"

encoding works fine / file even carries the correct name in it but decoding
truncates filename:

"1234567890123456789012345678901234567890123456789012345678901234567890123456789"

(79 chars + '\0'?!)

UUE and XXE encoding/decoding work without a problem


regards
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Confirmed for TC 7.50a (XP SP3).
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have checked my code - MIME variables are indeed limited to 79 characters at this time in the decoder. Sorry, I don't know why there is this limit, I will have to investigate.
Author of Total Commander
https://www.ghisler.com
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

ghisler(Author) wrote:I have checked my code - MIME variables are indeed limited to 79 characters at this time in the decoder. Sorry, I don't know why there is this limit, I will have to investigate.
AFAIR Quoted-Printable encoding used in MIME requires no more than seventy-something characters per line.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

Post by *HAL 9000 »

fenix_productions wrote:AFAIR Quoted-Printable encoding used in MIME requires no more than seventy-something characters per line.
that refers to the encoded data.
the "Content-Type" header field does not have such a limitation as far as i understood.

http://tools.ietf.org/html/rfc2045#section-5

regards
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have increased the size now for the next version.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Fixed in TC 7.55b1.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply