Unverified Commit bb38da6c authored by David Stancu's avatar David Stancu Committed by GitHub
Browse files

Merge pull request #23 from mach-kernel/createvolume-143k

Fix CREATEVOLUME size assertion
parents 56d530db 80631207
......@@ -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)!
......
......@@ -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)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment