]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Panic on ENOMEMs
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 23 Jun 2023 15:49:23 +0000 (09:49 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 23 Jun 2023 22:48:24 +0000 (16:48 -0600)
commit330240b2b5de670858a492703f016da21cc374bd
treec0845dffc038c602dc88fbdfef80e672a4d78613
parent62c65a79e142012067a76acf70b86438d56636e1
Panic on ENOMEMs

Trying to recover is incorrect because we don't want to advertise an
incomplete or outdated VRP table to the routers. We don't want to rely
on the OOM-killer; we NEED to die on memory allocation failures ASAP.

Though this doesn't have much to do with the RRDP refactor, I'm doing it
early to get plenty of time for testing and review.

Partially F1xes #40. (Still need to update some dependency usages.)
76 files changed:
src/asn1/oid.c
src/asn1/signed_data.c
src/asn1/signed_data.h
src/cert_stack.c
src/cert_stack.h
src/common.c
src/common.h
src/config.c
src/config/str.c
src/config/string_array.c
src/config/string_array.h
src/crypto/base64.c
src/crypto/hash.c
src/daemon.c
src/data_structure/array_list.h
src/data_structure/uthash_nonfatal.h [deleted file]
src/delete_dir_daemon.c
src/file.c
src/http/http.c
src/init.c
src/internal_pool.c
src/internal_pool.h
src/json_handler.c
src/line_file.c
src/log.c
src/log.h
src/object/bgpsec.c
src/object/certificate.c
src/object/ghostbusters.c
src/object/manifest.c
src/object/name.c
src/object/roa.c
src/object/tal.c
src/object/vcard.c
src/reqs_errors.c
src/resource.c
src/rpp.c
src/rpp.h
src/rrdp/db/db_rrdp.c
src/rrdp/db/db_rrdp_uris.c
src/rrdp/db/db_rrdp_uris.h
src/rrdp/rrdp_loader.c
src/rrdp/rrdp_objects.c
src/rrdp/rrdp_objects.h
src/rrdp/rrdp_parser.c
src/rsync/rsync.c
src/rsync/rsync.h
src/rtr/db/db_table.c
src/rtr/db/delta.c
src/rtr/db/delta.h
src/rtr/db/deltas_array.c
src/rtr/db/vrps.c
src/rtr/pdu.c
src/rtr/pdu_handler.c
src/rtr/pdu_sender.c
src/rtr/primitive_reader.c
src/rtr/rtr.c
src/slurm/db_slurm.c
src/slurm/db_slurm.h
src/slurm/slurm_loader.c
src/slurm/slurm_parser.c
src/sorted_array.c
src/state.c
src/str_token.c
src/str_token.h
src/thread/thread_pool.c
src/thread/thread_pool.h
src/thread_var.c
src/types/uri.c
src/visited_uris.c
src/visited_uris.h
test/rrdp_objects_test.c
test/rsync_test.c
test/rtr/db/deltas_array_test.c
test/rtr/db/vrps_test.c
test/tal_test.c