Compare commits

...

3 Commits

Author SHA1 Message Date
0x221E
3b6873ebad Patch: Fix off-by-one at command.c command_create_f_to_o() 2026-01-26 18:51:04 +01:00
0x221E
d68fc7db47 Readme: Add link to universe.0xinfinity.dev 2026-01-19 00:37:45 +01:00
0x221E
87085661a2 Fix: Backend depends on b->cap instead of MEM_BACKEND_MAX_CAP in backend_reserve()
Style: Remove redundant comments in main.c
2026-01-19 00:18:50 +01:00
4 changed files with 4 additions and 4 deletions

View File

@@ -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).

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;