Felix Fietkau
|
b342283d2d
fix a few formatting issues
|
пре 10 година |
Yousong Zhou
|
f8f9decc54
Use offset into parser buffer to avoid potential heap overflow.
|
пре 10 година |
Jo-Philipp Wich
|
e339407372
Preserve original permissions when rewriting config files on commit
|
пре 10 година |
Alexander Couzens
|
31d4b691d9
fix `uci import` with not yet existing packages
|
пре 10 година |
Felix Fietkau
|
c1f1ec3514
file: add missing return code check for mktemp()
|
пре 11 година |
Felix Fietkau
|
376fdc74c7
file: fix memleak on mktemp() errors
|
пре 11 година |
Luka Perkov
|
87be3798a9
style: free(NULL) is perfectly valid so we can drop some checks
|
пре 11 година |
Luka Perkov
|
42429219a9
file: make uci commits atomic
|
пре 11 година |
Krzysztof Kuznik
|
6c71e7ee00
uci: libuci leaking memory on non-existent config file
|
пре 12 година |
Jo-Philipp Wich
|
28608b5321
ignore trailing carriage returns in file parser
|
пре 11 година |
Jo-Philipp Wich
|
d3722382bd
Do quote section names to keep the same style as option values
|
пре 12 година |
Jo-Philipp Wich
|
bddae56bac
Section names, option names, list names can only be identifiers, so they don't need to be quoted.
|
пре 12 година |
Felix Fietkau
|
9d7dd37590
fix segfault on import of anonymous sections
|
пре 13 година |
Felix Fietkau
|
1d6095d5ac
add a few missing null pointer checks, and fix check vs dereference order in some cases (patch by Stanislav Fomichev)
|
пре 13 година |
Felix Fietkau
|
ef95525edc
check result of memory allocations (patch by Stanislav Fomichev)
|
пре 13 година |
Felix Fietkau
|
4a7d8053ae
fix lgpl license headers
|
пре 13 година |
Felix Fietkau
|
a46a89fc1f
make uci_file_commit() static
|
пре 14 година |
Felix Fietkau
|
ad70b02f42
remove the unused "complete" parameter for uci_fill_ptr()
|
пре 14 година |
Felix Fietkau
|
c4402a9e59
uci_history -> uci_delta
|
пре 14 година |
Felix Fietkau
|
6ce771b109
split off and compile file.c separately
|
пре 14 година |
Justin Bronder
|
aa3ab8012b
Fix memory leak in uci_list_config_files
|
пре 15 година |
Felix Fietkau
|
a8436caded
fix a null pointer deref in uci_file_commit when overwriting history data
|
пре 15 година |
Felix Fietkau
|
c60702b55c
fix compilation on later glibc/gcc versions with stricter checks
|
пре 15 година |
Felix Fietkau
|
79fe711a01
fix memory leak reported in https://dev.openwrt.org/ticket/4236
|
пре 16 година |
Felix Fietkau
|
1a388b01f8
overhaul package and section type validation - makes it easier to read and fixes some bugs in uci changes and uci show without explicit package references
|
пре 16 година |
Felix Fietkau
|
4fb6a564b8
clean up uci_set
|
пре 16 година |
Felix Fietkau
|
b485972f3a
more cleanup
|
пре 16 година |
Felix Fietkau
|
563f8dd6f0
code cleanup, some api changes for new uci_ptr struct
|
пре 16 година |
Felix Fietkau
|
28d2cc2add
fix list parsing with anonymous sections
|
пре 16 година |
Felix Fietkau
|
3bff697cca
add list support
|
пре 16 година |