Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Utils
KWSys
Commits
15effd64
Commit
15effd64
authored
3 years ago
by
Sean McBride
Browse files
Options
Downloads
Patches
Plain Diff
MD5: Fix Clang 13 Wnull-pointer-subtraction warning
parent
2c4a8330
No related branches found
Branches containing commit
No related tags found
1 merge request
!231
MD5: Fix Clang 13 Wnull-pointer-subtraction warning
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MD5.c
+2
-1
2 additions, 1 deletion
MD5.c
with
2 additions
and
1 deletion
MD5.c
+
2
−
1
View file @
15effd64
...
...
@@ -10,6 +10,7 @@
#endif
#include
<stddef.h>
/* size_t */
#include
<stdint.h>
/* uintptr_t */
#include
<stdlib.h>
/* malloc, free */
#include
<string.h>
/* memcpy, strlen */
...
...
@@ -202,7 +203,7 @@ static void md5_process(md5_state_t* pms, const md5_byte_t* data /*[64]*/)
* On little-endian machines, we can process properly aligned
* data without copying it.
*/
if
(
!
((
data
-
(
const
md5_byte_t
*
)
0
)
&
3
))
{
if
(
!
((
uintptr_t
)
data
&
3
))
{
/* data are properly aligned */
X
=
(
const
md5_word_t
*
)
data
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Brad King
@brad.king
mentioned in commit
b8c734ba
·
3 years ago
mentioned in commit
b8c734ba
mentioned in commit b8c734bac4380fae3758cd34dbcc8425532e4ecf
Toggle commit list
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