Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
constant_time_encoding
Commits
c1b1d82d
Commit
c1b1d82d
authored
2 years ago
by
Paragon Initiative Enterprises
Browse files
Options
Download
Patches
Plain Diff
Off-by-one error
parent
4e88c9a4
master
v2.6.3
v2.6.2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Base32.php
+1
-1
src/Base32.php
with
1 addition
and
1 deletion
+1
-1
src/Base32.php
+
1
−
1
View file @
c1b1d82d
...
@@ -197,7 +197,7 @@ abstract class Base32 implements EncoderInterface
...
@@ -197,7 +197,7 @@ abstract class Base32 implements EncoderInterface
}
}
if
((
$srcLen
&
7
)
===
0
)
{
if
((
$srcLen
&
7
)
===
0
)
{
for
(
$j
=
0
;
$j
<
7
&&
$j
<
$srcLen
;
++
$j
)
{
for
(
$j
=
0
;
$j
<
7
&&
$j
<
$srcLen
;
++
$j
)
{
if
(
$encodedString
[
$srcLen
-
$j
]
===
'='
)
{
if
(
$encodedString
[
$srcLen
-
$j
-
1
]
===
'='
)
{
throw
new
InvalidArgumentException
(
throw
new
InvalidArgumentException
(
"decodeNoPadding() doesn't tolerate padding"
"decodeNoPadding() doesn't tolerate padding"
);
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets