Compare commits
3 Commits
c7a96b14e8
...
unstable
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b6873ebad | ||
|
|
d68fc7db47 | ||
|
|
87085661a2 |
@@ -1,6 +1,8 @@
|
||||
# ibuild
|
||||
A simple build system written in C. The project is incomplete and is not meant to be used by anyone. It is designed to work out-of-the-box on C/C++ projects.
|
||||
|
||||
This project is maintained in: <https://universe.0xinfinity.dev/0x221E/ibuild>, where the plans, issues, and wiki are located.
|
||||
|
||||
## Security Disclaimer
|
||||
The project has not been battle-tested yet. I am not using as a daily driver yet, and when I do, I will conduct thorough testing by fuzzing the application continously for a period of time (likely a week).
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ Command command_create_f_to_o(CommandOptions* co)
|
||||
|
||||
for (size_t i = 0; i < pr.compiler_flags_count; i++)
|
||||
{
|
||||
args_buf[i + 5] = pr.compiler_flags_buf[i].buf;
|
||||
args_buf[i + 6] = pr.compiler_flags_buf[i].buf;
|
||||
}
|
||||
|
||||
args_buf[len_args] = NULL;
|
||||
|
||||
@@ -24,8 +24,6 @@ int main(void)
|
||||
discovery_discover(&d);
|
||||
|
||||
Configuration sample_config;
|
||||
/* Command cmd = command_create(&a_cmd, &d, &sample_config); */
|
||||
/* command_run(&cmd); */
|
||||
|
||||
Arena a_b = arena_create(&b, 1024*1024*5);
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ void* backend_reserve(Backend* b, size_t cap)
|
||||
{
|
||||
assert(b != NULL);
|
||||
void* ptr = b->last;
|
||||
if(b->len + cap >= MEM_BACKEND_MAX_CAP)
|
||||
if(b->len + cap >= b->cap)
|
||||
DIE("Process out of memory, requested %d (current usage %d out of %d).", cap, b->len, b->cap);
|
||||
b->last = (char*)b->last + (int)cap;
|
||||
b->len += cap;
|
||||
|
||||
Reference in New Issue
Block a user