File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -185,24 +185,28 @@ library Base64 {
185
185
186
186
// Decode each byte in the chunk as a 6 bit block, and align them to form a block of 3 bytes
187
187
let a := sub (byte (28 , input), 43 )
188
+ // slither-disable-next-line incorrect-shift
188
189
if iszero (and (shl (a, 1 ), 0xffffffd0ffffffc47ff5 )) {
189
190
mstore (0 , errorSelector)
190
191
mstore (4 , add (a, 49 ))
191
192
revert (0 , 0x24 )
192
193
}
193
194
let b := sub (byte (29 , input), 43 )
195
+ // slither-disable-next-line incorrect-shift
194
196
if iszero (and (shl (b, 1 ), 0xffffffd0ffffffc47ff5 )) {
195
197
mstore (0 , errorSelector)
196
198
mstore (4 , add (b, 49 ))
197
199
revert (0 , 0x24 )
198
200
}
199
201
let c := sub (byte (30 , input), 43 )
202
+ // slither-disable-next-line incorrect-shift
200
203
if iszero (and (shl (c, 1 ), 0xffffffd0ffffffc47ff5 )) {
201
204
mstore (0 , errorSelector)
202
205
mstore (4 , add (c, 49 ))
203
206
revert (0 , 0x24 )
204
207
}
205
208
let d := sub (byte (31 , input), 43 )
209
+ // slither-disable-next-line incorrect-shift
206
210
if iszero (and (shl (d, 1 ), 0xffffffd0ffffffc47ff5 )) {
207
211
mstore (0 , errorSelector)
208
212
mstore (4 , add (d, 49 ))
You can’t perform that action at this time.
0 commit comments