Project

General

Profile

Actions

Bug #2848

closed

buffer_append_base64_decode() broken on compilers where char is assumed unsigned

Added by codehero over 7 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_auth
Target version:
ASK QUESTIONS IN Forums:

Description

In my application, the username/password combination "admin" "admin" did not work on lighttpd 1.4.48 using basic auth.
Yes, admin/admin was borken.
After many hours of digging through lighttpd code, I determined that the following static const variables in base64.c:

static const char base64_standard_reverse_table[]

static const char base64_url_reverse_table[]

should actually be explicit signed characters, as char.

The attached patch resolves the issue.


Files

base64_fix_decode.patch (339 Bytes) base64_fix_decode.patch patch to resolve issue codehero, 2017-12-20 07:18

Related issues 2 (0 open2 closed)

Has duplicate Bug #2851: mod_auth fails its test suite on PowerPC (big-endian?)Duplicate2017-12-31Actions
Has duplicate Bug #2873: Basic Auth method not workingDuplicate2018-03-02Actions
#8

Updated by gstrauss over 7 years ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100
#9

Updated by gstrauss about 7 years ago

  • Has duplicate Bug #2851: mod_auth fails its test suite on PowerPC (big-endian?) added
#10

Updated by gstrauss about 7 years ago

  • Has duplicate Bug #2873: Basic Auth method not working added
Actions

Also available in: Atom