Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
1894e04d
Commit
1894e04d
authored
Jul 12, 2017
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxcomp/src/Proxy.cpp: Fix index usage of nested loops.
parent
4c387227
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Proxy.cpp
nxcomp/src/Proxy.cpp
+5
-5
No files found.
nxcomp/src/Proxy.cpp
View file @
1894e04d
...
...
@@ -5530,7 +5530,7 @@ const char *Proxy::handleLoadAllStores(const char *loadPath, const char *loadNam
md5_append
(
md5StateStream
,
(
const
md5_byte_t
*
)
loadName
,
strlen
(
loadName
));
md5_finish
(
md5StateStream
,
md5DigestStream
);
for
(
int
i
=
0
;
i
<
MD5_LENGTH
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
MD5_LENGTH
;
i
++
)
{
if
(
md5DigestStream
[
i
]
!=
md5FromFile
[
i
])
{
...
...
@@ -5539,17 +5539,17 @@ const char *Proxy::handleLoadAllStores(const char *loadPath, const char *loadNam
*
logofs
<<
"Proxy: PANIC! Bad checksum for cache file '"
<<
cacheName
<<
"'.
\n
"
<<
logofs_flush
;
for
(
unsigned
int
i
=
0
;
i
<
MD5_LENGTH
;
i
++
)
for
(
unsigned
int
j
=
0
;
j
<
MD5_LENGTH
;
j
++
)
{
sprintf
(
md5String
+
(
i
*
2
),
"%02X"
,
md5FromFile
[
i
]);
sprintf
(
md5String
+
(
j
*
2
),
"%02X"
,
md5FromFile
[
j
]);
}
*
logofs
<<
"Proxy: PANIC! Saved checksum is '"
<<
md5String
<<
"'.
\n
"
<<
logofs_flush
;
for
(
unsigned
int
i
=
0
;
i
<
MD5_LENGTH
;
i
++
)
for
(
unsigned
int
j
=
0
;
j
<
MD5_LENGTH
;
j
++
)
{
sprintf
(
md5String
+
(
i
*
2
),
"%02X"
,
md5DigestStream
[
i
]);
sprintf
(
md5String
+
(
j
*
2
),
"%02X"
,
md5DigestStream
[
i
]);
}
*
logofs
<<
"Proxy: PANIC! Calculated checksum is '"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment