Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ch32v003fun
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
Andreas Horn
ch32v003fun
Commits
4d1664ff
Commit
4d1664ff
authored
1 year ago
by
Alexander Mandera
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash on LEWriteBinaryBlob
parent
a4562526
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
minichlink/minichlink.exe
+0
-0
0 additions, 0 deletions
minichlink/minichlink.exe
minichlink/pgm-wch-linke.c
+2
-2
2 additions, 2 deletions
minichlink/pgm-wch-linke.c
with
2 additions
and
2 deletions
minichlink/minichlink.exe
deleted
100644 → 0
+
0
−
0
View file @
a4562526
File deleted
This diff is collapsed.
Click to expand it.
minichlink/pgm-wch-linke.c
+
2
−
2
View file @
4d1664ff
...
...
@@ -528,7 +528,7 @@ static int LEReadBinaryBlob( void * d, uint32_t offset, uint32_t amount, uint8_t
static
int
LEWriteBinaryBlob
(
void
*
d
,
uint32_t
address_to_write
,
uint32_t
len
,
uint8_t
*
blob
)
{
libusb_device_handle
*
dev
=
((
struct
LinkEProgrammerStruct
*
)
d
)
->
devh
;
struct
InternalState
*
iss
=
(
struct
InternalState
*
)(((
struct
ProgrammerStruct
Base
*
)
d
ev
)
->
internal
);
struct
InternalState
*
iss
=
(
struct
InternalState
*
)(((
struct
LinkE
ProgrammerStruct
*
)
d
)
->
internal
);
InternalLinkEHaltMode
(
d
,
0
);
...
...
@@ -567,7 +567,7 @@ static int LEWriteBinaryBlob( void * d, uint32_t address_to_write, uint32_t len,
}
if
(
i
==
10
)
{
fprintf
(
stderr
,
"Error, confusing respones to 02/01/07
\n
"
);
fprintf
(
stderr
,
"Error, confusing respon
s
es to 02/01/07
\n
"
);
exit
(
-
109
);
}
...
...
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