Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
Cadius
Commits
bb38da6c
Unverified
Commit
bb38da6c
authored
Apr 23, 2018
by
David Stancu
Committed by
GitHub
Apr 23, 2018
Browse files
Merge pull request #23 from mach-kernel/createvolume-143k
Fix CREATEVOLUME size assertion
parents
56d530db
80631207
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
bb38da6c
...
...
@@ -37,6 +37,9 @@ Any and all contributions are welcome. Included is also a `cadius.pro` file you
## Changelog
#### 1.4.2
-
`CREATEVOLUME`
did not previously allow for the creation of 143kb images. Thanks
[
@inexorabletash
](
https://github.com/inexorabletash
)
!
#### 1.4.1
-
`REPLACEFILE`
-
Buffer overflow resolved
[
#17
](
https://github.com/mach-kernel/cadius/issues/17
)
. Thanks
[
@sicklittlemonkey
](
https://github.com/sicklittlemonkey
)
!
...
...
Src/Main.c
View file @
bb38da6c
...
...
@@ -86,7 +86,7 @@ int main(int argc, char *argv[])
struct
file_descriptive_entry
*
folder_entry
;
/* Message Information */
logf
(
"%s v 1.4.
1
(c) Brutal Deluxe 2011-2013.
\n
"
,
argv
[
0
]);
logf
(
"%s v 1.4.
2
(c) Brutal Deluxe 2011-2013.
\n
"
,
argv
[
0
]);
/* Vérification des paramètres */
if
(
argc
<
3
)
...
...
@@ -974,7 +974,7 @@ struct parameter *GetParamLine(int argc, char *argv[])
if
(
!
my_stricmp
(
&
argv
[
4
][
strlen
(
argv
[
4
])
-
2
],
"MB"
))
param
->
new_volume_size_kb
*=
1024
;
}
if
(
param
->
new_volume_size_kb
<
=
143
||
param
->
new_volume_size_kb
>
32768
)
if
(
param
->
new_volume_size_kb
<
143
||
param
->
new_volume_size_kb
>
32768
)
param
->
new_volume_size_kb
=
0
;
if
(
param
->
new_volume_size_kb
==
0
)
{
...
...
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!
Cancel
Please
register
or
sign in
to comment