selinux/libsepol/cil/src
Christian Göttsche b2ba721ebb libsepol/cil: bail out on snprintf failure
Do not continue with a negative return value once a string append
operation fails to avoid increasing the buffer length variable
`str_len`, potentially leading to an out-of-bounds write.

Found by GitHub CodeQL.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
2022-01-05 13:22:45 -05:00
..
cil_binary.c libsepol/cil: Allow optional file type in genfscon rules 2021-12-09 10:46:23 -05:00
cil_binary.h libsepol/cil: remove unnecessary hash tables 2020-02-11 10:02:27 -05:00
cil_build_ast.c libsepol/cil: support IPv4/IPv6 address embedding 2021-12-15 12:47:17 -05:00
cil_build_ast.h libsepol/cil: Create function cil_add_decl_to_symtab() and refactor 2021-04-19 10:40:52 -04:00
cil_copy_ast.c libsepol/cil: Do not use original type and typeattribute datums 2021-09-22 09:46:20 +02:00
cil_copy_ast.h libsepol: Add Infiniband Pkey handling to CIL 2017-05-23 16:20:54 -04:00
cil_find.c libsepol: include header files in source files when matching declarations 2021-02-05 10:19:34 +01:00
cil_find.h libsepol/cil: Add support for neverallowx 2015-12-02 15:15:03 -05:00
cil_flavor.h libsepol: Add IB end port handling to CIL 2017-05-23 16:20:55 -04:00
cil_fqn.c libsepol/cil: follow declaration-after-statement 2021-06-24 09:40:03 -04:00
cil_fqn.h
cil_internal.h libsepol/cil: Allow optional file type in genfscon rules 2021-12-09 10:46:23 -05:00
cil_lexer.h libsepol/cil: Add high-level language line marking support 2016-05-05 16:13:49 -04:00
cil_lexer.l libsepol/cil: do not allow \0 in quoted strings 2021-07-13 21:05:03 +02:00
cil_list.c libsepol/cil: follow declaration-after-statement 2021-06-24 09:40:03 -04:00
cil_list.h libsepol/cil: Add support for neverallowx 2015-12-02 15:15:03 -05:00
cil_log.c libsepol/cil: constify some strings 2021-01-05 10:33:24 -05:00
cil_log.h Add missing <stdarg.h> include 2016-07-01 13:02:15 -04:00
cil_mem.c libsepol: include header files in source files when matching declarations 2021-02-05 10:19:34 +01:00
cil_mem.h libsepol: remove leftovers of cil_mem_error_handler 2020-01-27 10:51:18 -05:00
cil_parser.c libsepol/cil: Limit the number of active line marks 2021-09-08 09:45:35 +02:00
cil_parser.h libsepol/cil: constify some strings 2021-01-05 10:33:24 -05:00
cil_policy.c libsepol/cil: handle SID without assigned context when writing policy.conf 2021-02-24 11:22:12 +01:00
cil_policy.h libsepol/cil: Add ability to write policy.conf file from CIL AST 2016-11-30 10:18:12 -05:00
cil_post.c libsepol/cil: Check for empty list when marking neverallow attributes 2021-06-24 10:23:28 -04:00
cil_post.h libsepol/cil: make cil_post_fc_fill_data static 2021-03-17 08:46:33 +01:00
cil_reset_ast.c libsepol/cil: Reset expandtypeattribute rules when resetting AST 2021-09-02 10:48:02 -04:00
cil_reset_ast.h
cil_resolve_ast.c libsepol/cil: Do not skip macros when resolving until later passes 2021-10-06 12:03:48 +02:00
cil_resolve_ast.h libsepol/cil: better error message with duplicate aliases + support aliases to aliases 2017-06-01 12:17:29 -04:00
cil_stack.c libsepol/cil: Add function to get number of items in a stack 2021-09-08 09:45:23 +02:00
cil_stack.h libsepol/cil: Add function to get number of items in a stack 2021-09-08 09:45:23 +02:00
cil_strpool.c libsepol/cil: drop unnecessary casts 2021-06-24 09:41:01 -04:00
cil_strpool.h
cil_symtab.c libsepol/cil: Do not add NULL node when inserting key into symtab 2021-06-04 10:23:14 -04:00
cil_symtab.h
cil_tree.c libsepol/cil: Simplify cil_tree_children_destroy() 2021-09-02 10:49:22 -04:00
cil_tree.h libsepol/cil: Report correct high-level language line numbers 2021-08-19 11:08:59 -04:00
cil_verify.c libsepol/cil: silence clang void-pointer-to-enum-cast warning 2021-10-04 09:25:05 -04:00
cil_verify.h libsepol/cil: Use size_t for len in __cil_verify_syntax() 2021-09-07 10:28:46 -04:00
cil_write_ast.c libsepol/cil: Allow optional file type in genfscon rules 2021-12-09 10:46:23 -05:00
cil_write_ast.h libsepol/cil: Create functions to write the CIL AST 2021-04-21 21:45:14 +02:00
cil.c libsepol/cil: bail out on snprintf failure 2022-01-05 13:22:45 -05:00