Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
305e2c8f
Commit
305e2c8f
authored
10 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Plain Diff
Merge pull request #641 from mingodad/patch-1
On ARM chars are unsigned
parents
232b5fef
db07006f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
third_party/base64.c
+6
-6
6 additions, 6 deletions
third_party/base64.c
with
6 additions
and
6 deletions
third_party/base64.c
+
6
−
6
View file @
305e2c8f
...
...
@@ -190,10 +190,10 @@ struct base64_decodestate
char
result
;
};
static
char
base64_decode_value
(
char
value
)
static
int
base64_decode_value
(
int
value
)
{
static
const
char
decoding
[]
=
{
static
const
int
decoding
[]
=
{
62
,
-
1
,
-
1
,
-
1
,
63
,
52
,
53
,
54
,
55
,
56
,
57
,
58
,
59
,
60
,
61
,
-
1
,
-
1
,
-
1
,
-
2
,
-
1
,
-
1
,
-
1
,
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
...
...
@@ -202,8 +202,8 @@ base64_decode_value(char value)
32
,
33
,
34
,
35
,
36
,
37
,
38
,
39
,
40
,
41
,
42
,
43
,
44
,
45
,
46
,
47
,
48
,
49
,
50
,
51
};
static
const
char
decoding_size
=
sizeof
(
decoding
);
int
codepos
=
(
signed
char
)
value
;
static
const
int
decoding_size
=
sizeof
(
decoding
);
int
codepos
=
value
;
codepos
-=
43
;
if
(
codepos
<
0
||
codepos
>
decoding_size
)
return
-
1
;
...
...
@@ -226,7 +226,7 @@ base64_decode_block(const char *in_base64, int in_len,
const
char
*
in_end
=
in_base64
+
in_len
;
char
*
out_pos
=
out_bin
;
char
*
out_end
=
out_bin
+
out_len
;
char
fragment
;
int
fragment
;
*
out_pos
=
state
->
result
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment