| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix buffer overflow on ta_reallocHEADmaster | Xavier Del Campo Romero | 2025-11-12 | 1 | -1/+3 |
| | | | | | | | When reallocating a buffer to one with a smaller size, the number of elements to be copied to the new buffer must not be that of the old buffer, or the behaviour is undefined. | ||||
| * | Do not resize blocks on realloc | Xavier Del Campo Romero | 2025-11-12 | 1 | -5/+0 |
| | | | | | | | | | | | This allocator was not designed for reallocations, and therefore prev->size cannot be extended because that would overlap its contents with other data. Because of this, the only safe way to achieve a reallocation is to always allocate a new block, copy any existing data and free the old block. | ||||
| * | Redesign with sbrk(2) | Xavier Del Campo Romero | 2025-11-10 | 2 | -12/+14 |
| | | | | | | | | | | | | | | | | | | | | | | So far, tinyalloc was designed for a static heap area, failing to allocate whenever the end boundary was reached. Unfortunately, this design was too limiting if the same library were to be used for WebAssembly applications, where interpreters are required to implement the current_memory and grow_memory operators. [1] Whereas the former returns the number of currently allocated pages by the interpreter (64 KiB being the standard page size), the latter must increase that number by the number of pages required by the caller, but without exceeding the maximum limit imposed by the application developer. Since WebAssembly's grow_memory is usually converted to sbrk(2) by implementations, tinyalloc now makes use of this traditional syscall to achieve the desired effect. [1]: https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#-hrefsyntax-instr-memorymathsfmemorygrow | ||||
| * | Avoid undefined behaviour on const cast | Xavier Del Campo Romero | 2025-07-26 | 2 | -2/+2 |
| | | | | | | Removing the const qualifier from a const-qualified object and modify it is undefined behaviour. | ||||
| * | Avoid depending on stdint.h | Xavier Del Campo Romero | 2025-07-26 | 1 | -2/+2 |
| | | |||||
| * | Implement ta_realloc | Xavier Del Campo Romero | 2025-07-26 | 2 | -0/+40 |
| | | |||||
| * | Update README.md | Karsten Schmidt | 2021-10-08 | 1 | -0/+11 |
| | | |||||
| * | Merge pull request #9 from Ryzee119/patch-1 | Karsten Schmidt | 2020-09-18 | 1 | -0/+8 |
| |\ | | | | | Allow inclusion in CPP projects | ||||
| | * | Allow inclusion in CPP projects | Ryzee119 | 2020-09-17 | 1 | -0/+8 |
| |/ | | | | Attempted to use in Arduino, but got linker errors. This resolved the issue. | ||||
| * | Merge pull request #6 from llucinat/fix-heap-init | Karsten Schmidt | 2020-08-06 | 1 | -5/+3 |
| |\ | | | | | Fix heap initialization | ||||
| | * | Fix heap initialization | llucinat | 2020-08-06 | 1 | -5/+3 |
| |/ | |||||
| * | Merge pull request #7 from ANLAB-KAIST/warning-fix | Karsten Schmidt | 2020-05-20 | 1 | -4/+4 |
| |\ | | | | | fix: discarded-qualifiers & pointer comparison warnings | ||||
| | * | Fix discarded-qualifiers & pointer comparison warnings | Wonsup Yoon | 2020-05-20 | 1 | -4/+4 |
| |/ | |||||
| * | Merge pull request #5 from winduptoy/master | Karsten Schmidt | 2019-08-17 | 3 | -47/+36 |
| |\ | | | | | Move compile-time configuration into a runtime configuration | ||||
| | * | Move compile-time configuration into a runtime configuration. | Matt Reyer | 2019-07-01 | 3 | -47/+36 |
| |/ | | | | - Updated README | ||||
| * | Merge pull request #3 from silentcarl/master | Karsten Schmidt | 2019-01-10 | 1 | -1/+2 |
| |\ | | | | | out of bouds | ||||
| | * | out of bouds | 安静的卡尔 | 2019-01-10 | 1 | -1/+2 |
| |/ | |||||
| * | Merge pull request #1 from 0xflotus/patch-1 | Karsten Schmidt | 2019-01-07 | 1 | -2/+2 |
| |\ | | | | | docs: added space in readme | ||||
| | * | added space | 0xflotus | 2019-01-07 | 1 | -2/+2 |
| |/ | |||||
| * | remove various functions if TA_DISABLE_COMPACT, update ptr casts, update readme | Karsten Schmidt | 2017-07-15 | 2 | -8/+19 |
| | | |||||
| * | update readme | Karsten Schmidt | 2017-07-15 | 1 | -3/+5 |
| | | |||||
| * | add TA_DISABLE_* defines, update compact, memclear, add license, update readme | Karsten Schmidt | 2017-07-15 | 4 | -44/+252 |
| | | |||||
| * | update readme, add mem layout diag, rename defines & heap struct fields | Karsten Schmidt | 2017-07-14 | 5 | -28/+37 |
| | | |||||
| * | update readme | Karsten Schmidt | 2017-07-14 | 1 | -5/+76 |
| | | |||||
| * | rename fns again, add ta_calloc() & memset | Karsten Schmidt | 2017-07-14 | 3 | -53/+97 |
| | | |||||
| * | add readme | Karsten Schmidt | 2017-07-14 | 1 | -0/+13 |
| | | |||||
| * | add talloc.h, rename types & functions | Karsten Schmidt | 2017-07-14 | 2 | -71/+83 |
| | | |||||
| * | rename heap->head => heap->used, minor update compress(), use bool returns | Karsten Schmidt | 2017-07-14 | 1 | -26/+27 |
| | | |||||
| * | fix compress, add block splitting if alloc from larger free block | Karsten Schmidt | 2017-07-14 | 1 | -9/+45 |
| | | |||||
| * | initial import | Karsten Schmidt | 2017-07-14 | 2 | -0/+206 |
