summaryrefslogtreecommitdiff
path: root/src/lib/buffer.c
AgeCommit message (Expand)AuthorLines
2021-11-30lib: buffer_truncate_rshift_bits() - Replace signed expression with an unsign...Marco Bettini-1/+1
2021-10-05lib: buffer_free() - Check for buf==NULL before using container_of()Timo Sirainen-3/+2
2021-09-21lib: Optimize buffer_append() and buffer_append_c()Timo Sirainen-4/+28
2021-09-21lib: buffer_create_dynamic_max() - Fix max_size handlingTimo Sirainen-2/+9
2021-09-21lib: buffer_append_zero() - Avoid unnecessary memset()Timo Sirainen-2/+6
2021-09-21lib: buffer - Add writable_size to simplify checking if buffer needs to be grownTimo Sirainen-17/+13
2021-09-21lib: buffer - Replace casts with container_of()Timo Sirainen-21/+28
2021-04-13lib: Fix buffer_t aliasing problems with LTOTimo Sirainen-10/+14
2021-04-13lib: buffer - Change real_buffer.r_buffer type to const void *Timo Sirainen-3/+3
2021-01-15lib: Add buffer_create_dynamic_max()Timo Sirainen-4/+11
2020-10-22global: Disable undefined behaviour sanitization for select locationsAki Tuomi-1/+3
2020-10-22global: Use SIZE_MAX instead of (size_t)-1Aki Tuomi-4/+4
2020-09-11lib: buffer - Assert that we don't try to allocate SIZE_MAX bufferAki Tuomi-0/+9
2020-03-19global: use %zu directly instead of PRIuSIZE_TJosef 'Jeff' Sipek-6/+5
2019-08-26lib: buffer - Add buffer_get_avail_size().Stephan Bosch-0/+8
2019-03-19lib: buffer - Add buffer_replace().Stephan Bosch-0/+34
2018-02-21lib: Fix buffer code to satisfy static analyzersAki Tuomi-0/+6
2018-01-01Updated copyright notices to include the year 2018.Stephan Bosch-1/+1
2017-11-01global: Fix spelling mistakes in commentsAki Tuomi-1/+1
2017-09-20lib: buffer_free(NULL) should be a no-opJosef 'Jeff' Sipek-0/+3
2017-01-01Updated copyright notices to include the year 2017.Stephan Bosch-1/+1
2016-12-24global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zer...Stephan Bosch-2/+2
2016-11-24global: Code cleanup - avoid passing NULL to functions with non-null parameterTimo Sirainen-1/+2
2016-11-02lib: Add buffer truncateAki Tuomi-0/+25
2016-06-06global: unsigned int:1 -> bool:1Timo Sirainen-2/+2
2016-05-18Removed buffer_reset().Timo Sirainen-5/+0
2016-04-29lib: buffer_create_dynamic() now adds +1 to init_sizeTimo Sirainen-1/+4
2016-04-29lib: Use p_malloc() explicitly in first buffer_alloc()Timo Sirainen-1/+4
2016-01-13global: freshen copyrightTimo Sirainen-1/+1
2015-05-16lib: Added buffer_get_writable_size()Timo Sirainen-0/+14
2015-03-18lib: buffer - paranoid compile-time check for struct sizesPhil Carmody-0/+1
2015-01-05global: freshen copyrightPhil Carmody-1/+1
2014-07-28lib: compile time checks for buffer creationPhil Carmody-0/+2
2014-02-04Updated copyright notices to include year 2014.Timo Sirainen-1/+1
2013-02-16Merged changes from v2.1 tree.Timo Sirainen-2/+9
2013-02-02Oops :) Update copyrights to 2013 without breaking all .c files.Timo Sirainen-1/+1
2013-02-02Updated copyright notices to include year 2013.Timo Sirainen-1/+1
2013-01-15buffer: Always keep +1 byte available for str_c()'s NUL.Timo Sirainen-2/+9
2013-01-09Merged changes from v2.1 tree.Timo Sirainen-1/+1
2013-01-08DEBUG: buffer_verify_pool() crashed with empty buffer.Timo Sirainen-1/+1
2013-01-08DEBUG: buffer_verify_pool() crashed with static sized buffers.Timo Sirainen-1/+1
2013-01-05Merged changes from v2.1 tree.Timo Sirainen-0/+14
2013-01-04Added buffer_verify_pool()Timo Sirainen-0/+14
2012-09-06Renamed buffer_create_*data() to buffer_create_from_*data() for consistency.Timo Sirainen-2/+3
2012-09-06buffer_create_data(): Clear the memory area immediately.Timo Sirainen-0/+4
2012-02-12Updated copyright notices to include year 2012.Timo Sirainen-1/+1
2011-03-04Updated copyright notices to include year 2011.Timo Sirainen-1/+1
2010-08-23liblib: Don't segfault if write is attempted beyond non-dynamic buffer's bounds.Timo Sirainen-0/+1
2010-06-18DEBUG: Removed buffer's tests against overflows. It slows down too much.Timo Sirainen-1/+1
2010-04-29DEBUG: Try to catch stale pointer dereferences to buffers after they've grown.Timo Sirainen-0/+16