Commit History

Author SHA1 Message Date
  Luka Perkov f506323c30 style: fix whitespace errors 10 years ago
  Luka Perkov 87be3798a9 style: free(NULL) is perfectly valid so we can drop some checks 10 years ago
  Felix Fietkau d068b9f9d7 ucimap: initialize an uninitialized pointer (patch by Stanislav Fomichev) 12 years ago
  Felix Fietkau 5077cdcee2 ucimap: fix a memory leak (patch by Stanislav Fomichev) 12 years ago
  Felix Fietkau 1d6095d5ac add a few missing null pointer checks, and fix check vs dereference order in some cases (patch by Stanislav Fomichev) 12 years ago
  Felix Fietkau ef95525edc check result of memory allocations (patch by Stanislav Fomichev) 12 years ago
  Felix Fietkau 2b86a11e49 ucimap: fix use-after-free on cleanup (patch by Stanislav Fomichev) 12 years ago
  Felix Fietkau 4a7d8053ae fix lgpl license headers 12 years ago
  Felix Fietkau 0a84aa8d50 remove unused but set variable to fix a compiler warning 12 years ago
  Lars-Peter Clausen 25f9dbfe7b ucimap: ucimap_parse: consider smap_offset when allocating the section data 13 years ago
  Felix Fietkau 8bc580cbda simplify code (thx, henning) 14 years ago
  Felix Fietkau 97e71a1c1b ucimap: simplify the parse/format callbacks. the data argument now always points to the field in the data structure 14 years ago
  Felix Fietkau c434442c9e ucimap: fix list size initialization, validate list size on fixups as well 14 years ago
  Felix Fietkau 7791a9603c ucimap: fix list initialization 14 years ago
  Felix Fietkau c81b25ffd3 replace the use of list.h in the ucimap core, relicense ucimap to LGPL v2.1, update copyright headers 14 years ago
  Felix Fietkau ba0d03d0cc remove ucimap type->name conversion unless DEBUG is enabled 14 years ago
  Felix Fietkau 4f27765f0d ucimap: add support for saving lists to uci 14 years ago
  Felix Fietkau 25b34febb4 ucimap: add helper function for resizing lists and freeing items (both using ucimap internal allocation list), add test coverage for config change operations 14 years ago
  Felix Fietkau afa5662885 add sanity checks for optmap section type vs sectionmap type 14 years ago
  Felix Fietkau 6c05c721c7 ucimap: add custom free() callbacks for options, only used on custom datatypes 14 years ago
  Felix Fietkau 2e1e88ddee add ucimap_free_section to the api 14 years ago
  Felix Fietkau 41d24d850b add type safety checks for option maps 14 years ago
  Felix Fietkau 7c45dfd1c6 only call section ->add callbacks after all fixups have been processed, also call ->add for sections manually parsed later 14 years ago
  Felix Fietkau 151917e819 preserve section list order 14 years ago
  Felix Fietkau cd68df2c25 rename ucimap_data::section to ptr 14 years ago
  Felix Fietkau 2a8229347c expose the ucimap_parse_section function in the api, do not defer fixups if immediate lookup works 14 years ago
  Felix Fietkau 477c19a722 ucimap: add new UCIMAP_LIST_AUTO for automatically converting multiple list items whitespace-separated in an option 14 years ago
  Felix Fietkau 65f3dccc35 ucimap: fix boolean interpretation, add range checks for int values (thx, henning) 14 years ago
  Felix Fietkau 82a71ad8d8 ucimap: implement format callback for custom data types 14 years ago
  Felix Fietkau ceaa2fbb3c ucimap: allow api users to take over allocation of section data structures 14 years ago