)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"1e5d27a9962825bde72d15da684360136bffe74d","unresolved":true,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implement initial packet reflection protection using bloom filter"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an OpenVPN server is used/tried to be usedc in a reflection attack"},{"line_number":10,"context_line":"the protection with the simple --connect-freq-initial also block legimitate"},{"line_number":11,"context_line":"client from other networks that are not attacked by a reflection attack."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"140c2624_9f153ae5","line":9,"updated":"2026-08-30 16:28:03.000000000","message":"\"usedc\" -\u003e \"used\"","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implement initial packet reflection protection using bloom filter"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an OpenVPN server is used/tried to be usedc in a reflection attack"},{"line_number":10,"context_line":"the protection with the simple --connect-freq-initial also block legimitate"},{"line_number":11,"context_line":"client from other networks that are not attacked by a reflection attack."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"51354ed6_da206fb0","line":9,"in_reply_to":"140c2624_9f153ae5","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"1e5d27a9962825bde72d15da684360136bffe74d","unresolved":true,"context_lines":[{"line_number":7,"context_line":"Implement initial packet reflection protection using bloom filter"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an OpenVPN server is used/tried to be usedc in a reflection attack"},{"line_number":10,"context_line":"the protection with the simple --connect-freq-initial also block legimitate"},{"line_number":11,"context_line":"client from other networks that are not attacked by a reflection attack."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"To allow a server to still reply to these clients, we need to make the counts"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"9f26e985_c90f8d99","line":10,"updated":"2026-08-30 16:28:03.000000000","message":"\"block\" -\u003e \"blocks\"\n\"legimitate\" -\u003e \"legitimate\"","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Implement initial packet reflection protection using bloom filter"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an OpenVPN server is used/tried to be usedc in a reflection attack"},{"line_number":10,"context_line":"the protection with the simple --connect-freq-initial also block legimitate"},{"line_number":11,"context_line":"client from other networks that are not attacked by a reflection attack."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"To allow a server to still reply to these clients, we need to make the counts"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"c4176285_f52d1eb2","line":10,"in_reply_to":"9f26e985_c90f8d99","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"1e5d27a9962825bde72d15da684360136bffe74d","unresolved":true,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an OpenVPN server is used/tried to be usedc in a reflection attack"},{"line_number":10,"context_line":"the protection with the simple --connect-freq-initial also block legimitate"},{"line_number":11,"context_line":"client from other networks that are not attacked by a reflection attack."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"To allow a server to still reply to these clients, we need to make the counts"},{"line_number":14,"context_line":"rather more detailed and count per subnet or IP address. On the other hand"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"27780e5b_11938546","line":11,"updated":"2026-08-30 16:28:03.000000000","message":"\"clients\"?","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an OpenVPN server is used/tried to be usedc in a reflection attack"},{"line_number":10,"context_line":"the protection with the simple --connect-freq-initial also block legimitate"},{"line_number":11,"context_line":"client from other networks that are not attacked by a reflection attack."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"To allow a server to still reply to these clients, we need to make the counts"},{"line_number":14,"context_line":"rather more detailed and count per subnet or IP address. On the other hand"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"31a33a1b_dd251071","line":11,"in_reply_to":"27780e5b_11938546","updated":"2026-09-15 12:00:56.000000000","message":"Acknowledged","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"1e5d27a9962825bde72d15da684360136bffe74d","unresolved":true,"context_lines":[{"line_number":15,"context_line":"when we keep all this state, we eliminate the advantage of having a stateless"},{"line_number":16,"context_line":"cookie based initial packet handshake."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"As compromoise we use a bloom filter to store the information. This data"},{"line_number":19,"context_line":"structure is probabilistic and can have false positive and more packets"},{"line_number":20,"context_line":"being dropped but since it is a constant size and the size of this map"},{"line_number":21,"context_line":"is small enough for non-embedded systems (tests were done with a 2MB"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"c9a91b6b_9f87b405","line":18,"updated":"2026-08-30 16:28:03.000000000","message":"\"compromoise\" -\u003e \"compromise\" (maybe \"a compromise\"?).","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":15,"context_line":"when we keep all this state, we eliminate the advantage of having a stateless"},{"line_number":16,"context_line":"cookie based initial packet handshake."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"As compromoise we use a bloom filter to store the information. This data"},{"line_number":19,"context_line":"structure is probabilistic and can have false positive and more packets"},{"line_number":20,"context_line":"being dropped but since it is a constant size and the size of this map"},{"line_number":21,"context_line":"is small enough for non-embedded systems (tests were done with a 2MB"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"1064e1d2_8fd9df9d","line":18,"in_reply_to":"c9a91b6b_9f87b405","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"1e5d27a9962825bde72d15da684360136bffe74d","unresolved":true,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"The code is split into the bloom filter implementation and the actual logic"},{"line_number":25,"context_line":"implementing tracking the subnets, so the bloom filter should be relatively"},{"line_number":26,"context_line":"easily be exchangable by another data structure."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"As hash funtion SIPHASH has been chosen since it was designed for this kind"},{"line_number":29,"context_line":"of application."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"5062755f_6e0963a8","line":26,"updated":"2026-08-30 16:28:03.000000000","message":"\"exchangeable\"","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"The code is split into the bloom filter implementation and the actual logic"},{"line_number":25,"context_line":"implementing tracking the subnets, so the bloom filter should be relatively"},{"line_number":26,"context_line":"easily be exchangable by another data structure."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"As hash funtion SIPHASH has been chosen since it was designed for this kind"},{"line_number":29,"context_line":"of application."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"0644e666_87c13371","line":26,"in_reply_to":"5062755f_6e0963a8","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"1e5d27a9962825bde72d15da684360136bffe74d","unresolved":true,"context_lines":[{"line_number":25,"context_line":"implementing tracking the subnets, so the bloom filter should be relatively"},{"line_number":26,"context_line":"easily be exchangable by another data structure."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"As hash funtion SIPHASH has been chosen since it was designed for this kind"},{"line_number":29,"context_line":"of application."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Change-Id: I0a9274cab7fefce3b13c05052fb9a072e0bfa6b9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"c1d19860_af2edf03","line":28,"updated":"2026-08-30 16:28:03.000000000","message":"\"funtion\" -\u003e \"function\"","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":25,"context_line":"implementing tracking the subnets, so the bloom filter should be relatively"},{"line_number":26,"context_line":"easily be exchangable by another data structure."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"As hash funtion SIPHASH has been chosen since it was designed for this kind"},{"line_number":29,"context_line":"of application."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Change-Id: I0a9274cab7fefce3b13c05052fb9a072e0bfa6b9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"2eb11839_38014551","line":28,"in_reply_to":"c1d19860_af2edf03","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"8f25090ead49b0c71eb783623d1309738e9a7b12"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"a2ec20f5c9eef16ab062006f5ad13d2aac5a916d","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":9,"id":"526ba69c_33156428","updated":"2024-09-21 14:26:47.000000000","message":"I havne\u0027t reviewed the whole thing yet, but I found some stuff to complain about","commit_id":"d43f1cc810efceedecd674b1351a189098d2355a"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":11,"id":"838930d4_b152503e","updated":"2026-11-06 11:11:48.000000000","message":"I addressed the comments but did not test this again. We have to see when we to pick this up again.","commit_id":"041f266f134ebc625810c269c2749f5571cca225"}],"Changes.md":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"* **Bloom filter based reflection protection**"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"  To avoid the limitation of ``--connect-freq-initial`` to block legimitate"},{"line_number":29,"context_line":"  clients when an OpenVPN server is tried to be used in a reflection attack,"},{"line_number":30,"context_line":"  the new ``--connect-freq-initial-bloom-limit`` can impose limit on a"},{"line_number":31,"context_line":"  per-subnet basis. See the manual for more details. Note: this option"}],"source_content_type":"text/x-markdown","patch_set":11,"id":"9741d65c_0c4c14d0","line":28,"updated":"2026-10-26 12:10:21.000000000","message":"Typo: \"legitimate\".","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"* **Bloom filter based reflection protection**"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"  To avoid the limitation of ``--connect-freq-initial`` to block legimitate"},{"line_number":29,"context_line":"  clients when an OpenVPN server is tried to be used in a reflection attack,"},{"line_number":30,"context_line":"  the new ``--connect-freq-initial-bloom-limit`` can impose limit on a"},{"line_number":31,"context_line":"  per-subnet basis. See the manual for more details. Note: this option"}],"source_content_type":"text/x-markdown","patch_set":11,"id":"b4f46a05_d33ed53a","line":28,"in_reply_to":"9741d65c_0c4c14d0","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"}],"doc/man-sections/server-options.rst":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":257,"context_line":"   ``--connect-freq-initial`` but takes the source of the initial packet into"},{"line_number":258,"context_line":"   account. This function shares the the reset after a time period and"},{"line_number":259,"context_line":"   enabling this function will not disable the overall limit of"},{"line_number":260,"context_line":"   ``--conect-freq-initial``."},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"   To avoid resource exhaustion on the OpenVPN server side from reflection"},{"line_number":263,"context_line":"   attacks and also trying to avoid blocking legitimate clients when an"}],"source_content_type":"text/x-rst","patch_set":11,"id":"f2324306_a5d9f81f","line":260,"updated":"2026-10-26 12:10:21.000000000","message":"Typo: \"connect\".","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":257,"context_line":"   ``--connect-freq-initial`` but takes the source of the initial packet into"},{"line_number":258,"context_line":"   account. This function shares the the reset after a time period and"},{"line_number":259,"context_line":"   enabling this function will not disable the overall limit of"},{"line_number":260,"context_line":"   ``--conect-freq-initial``."},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"   To avoid resource exhaustion on the OpenVPN server side from reflection"},{"line_number":263,"context_line":"   attacks and also trying to avoid blocking legitimate clients when an"}],"source_content_type":"text/x-rst","patch_set":11,"id":"4d26a598_49ed3fed","line":260,"in_reply_to":"f2324306_a5d9f81f","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":289,"context_line":"   entry can also lead to a false negative. However, this is limited in the"},{"line_number":290,"context_line":"   sense a reply can at most trigger one false negative."},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"   Every limit configured with this option will put more more entries into"},{"line_number":293,"context_line":"   the bloomfilter since per limit (per family), one entry is put into the"},{"line_number":294,"context_line":"   bloom filter. So a large number of entries requires a larger bloom filter"},{"line_number":295,"context_line":"   to avoid too many false positives."}],"source_content_type":"text/x-rst","patch_set":11,"id":"481d0698_44c5764e","line":292,"updated":"2026-10-26 12:10:21.000000000","message":"Typo: \"more more\".","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":289,"context_line":"   entry can also lead to a false negative. However, this is limited in the"},{"line_number":290,"context_line":"   sense a reply can at most trigger one false negative."},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"   Every limit configured with this option will put more more entries into"},{"line_number":293,"context_line":"   the bloomfilter since per limit (per family), one entry is put into the"},{"line_number":294,"context_line":"   bloom filter. So a large number of entries requires a larger bloom filter"},{"line_number":295,"context_line":"   to avoid too many false positives."}],"source_content_type":"text/x-rst","patch_set":11,"id":"ab9a2127_83a32c6c","line":292,"in_reply_to":"481d0698_44c5764e","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"}],"src/openvpn/Makefile.am":[{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"a2ec20f5c9eef16ab062006f5ad13d2aac5a916d","unresolved":true,"context_lines":[{"line_number":43,"context_line":"\tauth_token.c auth_token.h \\"},{"line_number":44,"context_line":"\tbase64.c base64.h \\"},{"line_number":45,"context_line":"\tbasic.h \\"},{"line_number":46,"context_line":"    bloom.c bloom.h \\"},{"line_number":47,"context_line":"\tbuffer.c buffer.h \\"},{"line_number":48,"context_line":"\tcirc_list.h \\"},{"line_number":49,"context_line":"\tclinat.c clinat.h \\"}],"source_content_type":"application/octet-stream","patch_set":8,"id":"5feab99c_f33c2318","line":46,"range":{"start_line":46,"start_character":0,"end_line":46,"end_character":5},"updated":"2024-09-21 14:26:47.000000000","message":"tabs vs spaces","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":43,"context_line":"\tauth_token.c auth_token.h \\"},{"line_number":44,"context_line":"\tbase64.c base64.h \\"},{"line_number":45,"context_line":"\tbasic.h \\"},{"line_number":46,"context_line":"    bloom.c bloom.h \\"},{"line_number":47,"context_line":"\tbuffer.c buffer.h \\"},{"line_number":48,"context_line":"\tcirc_list.h \\"},{"line_number":49,"context_line":"\tclinat.c clinat.h \\"}],"source_content_type":"application/octet-stream","patch_set":8,"id":"232c129e_bea81336","line":46,"range":{"start_line":46,"start_character":0,"end_line":46,"end_character":5},"in_reply_to":"5feab99c_f33c2318","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"}],"src/openvpn/bloom.c":[{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"a2ec20f5c9eef16ab062006f5ad13d2aac5a916d","unresolved":true,"context_lines":[{"line_number":98,"context_line":"    return num_siphash;"},{"line_number":99,"context_line":"}"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"/**"},{"line_number":102,"context_line":" * Calculates the number of bytes we need for storing a bloom filter of size"},{"line_number":103,"context_line":" * size. We add + 1 to avoid rounding problems and too small allocation */"},{"line_number":104,"context_line":"static inline"},{"line_number":105,"context_line":"size_t"},{"line_number":106,"context_line":"bloom_get_filter_byte_count(size_t size)"},{"line_number":107,"context_line":"{"},{"line_number":108,"context_line":"    static_assert(sizeof(bloom_counter_t) * 8 % BLOOM_FILTER_BITS_COUNT \u003d\u003d 0,"},{"line_number":109,"context_line":"                  \"bloom_counter_t must be a multiple of BLOOM_FILTER_BIT_COUNT\");"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"    return size * sizeof(bloom_counter_t)/BLOOM_FILTER_BITS_COUNT + 1;"},{"line_number":112,"context_line":"}"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"static inline"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"ca1b18dc_b9ffbcbe","line":112,"range":{"start_line":101,"start_character":0,"end_line":112,"end_character":1},"updated":"2024-09-21 14:26:47.000000000","message":"I\u0027m really confused by what size means here. This is *not* the size field in the bloom filter struct, right? It\u0027s the total number of bits in the bloom filter, right?","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    return num_siphash;"},{"line_number":99,"context_line":"}"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"/**"},{"line_number":102,"context_line":" * Calculates the number of bytes we need for storing a bloom filter of size"},{"line_number":103,"context_line":" * size. We add + 1 to avoid rounding problems and too small allocation */"},{"line_number":104,"context_line":"static inline"},{"line_number":105,"context_line":"size_t"},{"line_number":106,"context_line":"bloom_get_filter_byte_count(size_t size)"},{"line_number":107,"context_line":"{"},{"line_number":108,"context_line":"    static_assert(sizeof(bloom_counter_t) * 8 % BLOOM_FILTER_BITS_COUNT \u003d\u003d 0,"},{"line_number":109,"context_line":"                  \"bloom_counter_t must be a multiple of BLOOM_FILTER_BIT_COUNT\");"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"    return size * sizeof(bloom_counter_t)/BLOOM_FILTER_BITS_COUNT + 1;"},{"line_number":112,"context_line":"}"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"static inline"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"83cdb58d_bc8545dd","line":112,"range":{"start_line":101,"start_character":0,"end_line":112,"end_character":1},"in_reply_to":"ca1b18dc_b9ffbcbe","updated":"2026-09-15 12:00:56.000000000","message":"Yeah. I also think that the calculation was wrong I fixed that.","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"a2ec20f5c9eef16ab062006f5ad13d2aac5a916d","unresolved":true,"context_lines":[{"line_number":112,"context_line":"}"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"static inline"},{"line_number":116,"context_line":"size_t"},{"line_number":117,"context_line":"bloom_get_filter_bit_offset(size_t bucket)"},{"line_number":118,"context_line":"{"},{"line_number":119,"context_line":"    return (bucket * BLOOM_FILTER_BITS_COUNT) % sizeof(bloom_counter_t);"},{"line_number":120,"context_line":"}"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"static inline"},{"line_number":123,"context_line":"size_t"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"88af9dc3_bf01868e","line":120,"range":{"start_line":115,"start_character":0,"end_line":120,"end_character":1},"updated":"2024-09-21 14:26:47.000000000","message":"If this is a bit offset, don\u0027t we need 8 * sizeof(bloom_counter_t) here?","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":112,"context_line":"}"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"static inline"},{"line_number":116,"context_line":"size_t"},{"line_number":117,"context_line":"bloom_get_filter_bit_offset(size_t bucket)"},{"line_number":118,"context_line":"{"},{"line_number":119,"context_line":"    return (bucket * BLOOM_FILTER_BITS_COUNT) % sizeof(bloom_counter_t);"},{"line_number":120,"context_line":"}"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"static inline"},{"line_number":123,"context_line":"size_t"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"29bc0ff4_0b65c478","line":120,"range":{"start_line":115,"start_character":0,"end_line":120,"end_character":1},"in_reply_to":"88af9dc3_bf01868e","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"a2ec20f5c9eef16ab062006f5ad13d2aac5a916d","unresolved":true,"context_lines":[{"line_number":119,"context_line":"    return (bucket * BLOOM_FILTER_BITS_COUNT) % sizeof(bloom_counter_t);"},{"line_number":120,"context_line":"}"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"static inline"},{"line_number":123,"context_line":"size_t"},{"line_number":124,"context_line":"bloom_get_filter_array_index(size_t bucket)"},{"line_number":125,"context_line":"{"},{"line_number":126,"context_line":"    return (bucket * BLOOM_FILTER_BITS_COUNT) / sizeof(bloom_counter_t);"},{"line_number":127,"context_line":"}"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"static inline bloom_counter_t"},{"line_number":130,"context_line":"bloom_get_filter_get_counter(struct bloom_filter *bf, size_t bucket)"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"f0ce5e7f_d277c415","line":127,"range":{"start_line":122,"start_character":0,"end_line":127,"end_character":1},"updated":"2024-09-21 14:26:47.000000000","message":"This seems wrong to me. Every bucket is 2 bits wide. The bloom_counter_t is 32 bits wide, or 4 bytes, so sizeof(bloom_counter_t) \u003d\u003d 4.\n\nBucket 3 is at a 6 bit offset, so it\u0027s in the first bloom_counter_t (array index 0). But this function gives 3 * 2 / 4 \u003d\u003d 1.","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":119,"context_line":"    return (bucket * BLOOM_FILTER_BITS_COUNT) % sizeof(bloom_counter_t);"},{"line_number":120,"context_line":"}"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"static inline"},{"line_number":123,"context_line":"size_t"},{"line_number":124,"context_line":"bloom_get_filter_array_index(size_t bucket)"},{"line_number":125,"context_line":"{"},{"line_number":126,"context_line":"    return (bucket * BLOOM_FILTER_BITS_COUNT) / sizeof(bloom_counter_t);"},{"line_number":127,"context_line":"}"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"static inline bloom_counter_t"},{"line_number":130,"context_line":"bloom_get_filter_get_counter(struct bloom_filter *bf, size_t bucket)"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"030c812c_7f88cbbc","line":127,"range":{"start_line":122,"start_character":0,"end_line":127,"end_character":1},"in_reply_to":"f0ce5e7f_d277c415","updated":"2026-09-15 12:00:56.000000000","message":"You are correct. I forgot the translation  of bloom_counter_t to bytes.","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"a2ec20f5c9eef16ab062006f5ad13d2aac5a916d","unresolved":true,"context_lines":[{"line_number":169,"context_line":"    bf-\u003enum_siphash \u003d calculate_num_sip_hash_hashes(bf);"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    ALLOC_ARRAY_GC(bf-\u003esiphash_keys, struct siphash_key, bf-\u003enum_siphash, gc);"},{"line_number":172,"context_line":"    "},{"line_number":173,"context_line":"    bloom_clear(bf);"},{"line_number":174,"context_line":"    return bf;"},{"line_number":175,"context_line":"}"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"688a1a4a_2c63f6ac","line":172,"range":{"start_line":172,"start_character":0,"end_line":172,"end_character":4},"updated":"2024-09-21 14:26:47.000000000","message":"whitespace","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":169,"context_line":"    bf-\u003enum_siphash \u003d calculate_num_sip_hash_hashes(bf);"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    ALLOC_ARRAY_GC(bf-\u003esiphash_keys, struct siphash_key, bf-\u003enum_siphash, gc);"},{"line_number":172,"context_line":"    "},{"line_number":173,"context_line":"    bloom_clear(bf);"},{"line_number":174,"context_line":"    return bf;"},{"line_number":175,"context_line":"}"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"08ce5d7d_01f2f7e0","line":172,"range":{"start_line":172,"start_character":0,"end_line":172,"end_character":4},"in_reply_to":"688a1a4a_2c63f6ac","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":237,"context_line":"bloom_counter_t"},{"line_number":238,"context_line":"bloom_remove(struct bloom_filter *bf, const uint8_t *item, size_t len)"},{"line_number":239,"context_line":"{"},{"line_number":240,"context_line":"    return bloom_add_test(bf, item, len, -1);"},{"line_number":241,"context_line":"}"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":11,"id":"9f1d3032_697d2636","line":240,"updated":"2026-10-26 12:10:21.000000000","message":"`bloom_add_test()` takes a `bloom_counter_t` for its last parameter (`-1` here). That is `typedef uint32_t bloom_counter_t;` so will end up being `0xffffffff` here, which is then logically interpreted as `true`, so a remove will actually increment the counters.","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":237,"context_line":"bloom_counter_t"},{"line_number":238,"context_line":"bloom_remove(struct bloom_filter *bf, const uint8_t *item, size_t len)"},{"line_number":239,"context_line":"{"},{"line_number":240,"context_line":"    return bloom_add_test(bf, item, len, -1);"},{"line_number":241,"context_line":"}"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":11,"id":"8900b86b_97a33224","line":240,"in_reply_to":"9f1d3032_697d2636","updated":"2026-11-06 11:11:48.000000000","message":"Acknowledged","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":237,"context_line":"bloom_counter_t"},{"line_number":238,"context_line":"bloom_remove(struct bloom_filter *bf, const uint8_t *item, size_t len)"},{"line_number":239,"context_line":"{"},{"line_number":240,"context_line":"    return bloom_add_test(bf, item, len, -1);"},{"line_number":241,"context_line":"}"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":11,"id":"53eaf1d5_c8132eef","line":240,"in_reply_to":"9f1d3032_697d2636","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"568b45cbdfce1b44c231113aa9a5309b768d9ceb","unresolved":true,"context_lines":[{"line_number":137,"context_line":"    bloom_counter_t data \u003d bf-\u003ebuckets[bloom_get_filter_array_index(bucket)];"},{"line_number":138,"context_line":"    size_t bitoffset \u003d bloom_get_filter_bit_offset(bucket);"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    data \u003d data \u0026 ~(BLOOM_FILTER_BITS_MASK \u003c\u003c bitoffset);"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    data \u003d data | ((value \u0026 BLOOM_FILTER_BITS_MASK) \u003c\u003c bitoffset);"},{"line_number":143,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":12,"id":"fe47543f_a0eb31b6","line":140,"updated":"2026-11-06 12:05:01.000000000","message":"UBSan flags that this is treated as an `int` shifted by `28`. Fixed by casting the mask to `bloom_counter_t` (same at line 142 below).","commit_id":"6082437e8d6fdfa1415ddd74f57c8e4897a78ade"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"568b45cbdfce1b44c231113aa9a5309b768d9ceb","unresolved":true,"context_lines":[{"line_number":152,"context_line":"struct bloom_filter *"},{"line_number":153,"context_line":"bloom_create(size_t size, size_t num_hashes, struct gc_arena *gc)"},{"line_number":154,"context_line":"{"},{"line_number":155,"context_line":"    size_t bloomfilter_bytes \u003d bloom_get_filter_byte_count(size);"},{"line_number":156,"context_line":"    struct bloom_filter *bf \u003d gc_malloc(sizeof(struct bloom_filter) + bloomfilter_bytes,"},{"line_number":157,"context_line":"                                        false,"},{"line_number":158,"context_line":"                                        gc);"}],"source_content_type":"text/x-csrc","patch_set":12,"id":"70807cd3_2b7f2b7d","line":155,"updated":"2026-11-06 12:05:01.000000000","message":"ASan reports a heap-buffer-overflow with `bloom_create(1, 1)`.","commit_id":"6082437e8d6fdfa1415ddd74f57c8e4897a78ade"}],"src/openvpn/bloom.h":[{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"a2ec20f5c9eef16ab062006f5ad13d2aac5a916d","unresolved":true,"context_lines":[{"line_number":5,"context_line":" *             packet encryption, packet authentication, and"},{"line_number":6,"context_line":" *             packet compression."},{"line_number":7,"context_line":" *"},{"line_number":8,"context_line":" *  Copyright (C) 2022 OpenVPN Inc \u003csales@openvpn.net\u003e"},{"line_number":9,"context_line":" *"},{"line_number":10,"context_line":" *  This program is free software; you can redistribute it and/or modify"},{"line_number":11,"context_line":" *  it under the terms of the GNU General Public License version 2"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"88db0086_921e0752","line":8,"range":{"start_line":8,"start_character":17,"end_line":8,"end_character":23},"updated":"2024-09-21 14:26:47.000000000","message":"Shouldn\u0027t this be 2024?","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":5,"context_line":" *             packet encryption, packet authentication, and"},{"line_number":6,"context_line":" *             packet compression."},{"line_number":7,"context_line":" *"},{"line_number":8,"context_line":" *  Copyright (C) 2022 OpenVPN Inc \u003csales@openvpn.net\u003e"},{"line_number":9,"context_line":" *"},{"line_number":10,"context_line":" *  This program is free software; you can redistribute it and/or modify"},{"line_number":11,"context_line":" *  it under the terms of the GNU General Public License version 2"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"70f7a256_3942ad54","line":8,"range":{"start_line":8,"start_character":17,"end_line":8,"end_character":23},"in_reply_to":"88db0086_921e0752","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"a2ec20f5c9eef16ab062006f5ad13d2aac5a916d","unresolved":true,"context_lines":[{"line_number":29,"context_line":"#include \"buffer.h\""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"/* This is the type we use for the buckets. This is split into small buckets"},{"line_number":32,"context_line":" * with BLOOM_FILTER_BIT_COUNT size */"},{"line_number":33,"context_line":"typedef uint32_t bloom_counter_t;"},{"line_number":34,"context_line":"#define BLOOM_FILTER_BITS_COUNT    2"},{"line_number":35,"context_line":"#define BLOOM_FILTER_BITS_MASK   0x03"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"c0e46973_ad5f7ee1","line":32,"range":{"start_line":32,"start_character":8,"end_line":32,"end_character":30},"updated":"2024-09-21 14:26:47.000000000","message":"BITS","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":29,"context_line":"#include \"buffer.h\""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"/* This is the type we use for the buckets. This is split into small buckets"},{"line_number":32,"context_line":" * with BLOOM_FILTER_BIT_COUNT size */"},{"line_number":33,"context_line":"typedef uint32_t bloom_counter_t;"},{"line_number":34,"context_line":"#define BLOOM_FILTER_BITS_COUNT    2"},{"line_number":35,"context_line":"#define BLOOM_FILTER_BITS_MASK   0x03"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"0dc7e94f_62f4e08b","line":32,"range":{"start_line":32,"start_character":8,"end_line":32,"end_character":30},"in_reply_to":"c0e46973_ad5f7ee1","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":79,"context_line":" *"},{"line_number":80,"context_line":" * For our example of a bloom filter with 1024 entries and 5 hash functions,"},{"line_number":81,"context_line":" * hashing an entry might yield 77,323, 662, 789, and 8. That would then"},{"line_number":82,"context_line":" * increase the buckets (bit counters) at the the index positions 77, 323,"},{"line_number":83,"context_line":" * 662, 789, and 8. If an entry is at its maximum (15 for 4 bits counters)"},{"line_number":84,"context_line":" * it will stop increasing the counter."},{"line_number":85,"context_line":" *"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"3593e6d1_ffce2ece","line":82,"updated":"2026-10-26 12:10:21.000000000","message":"Typo: \"the the\".","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":79,"context_line":" *"},{"line_number":80,"context_line":" * For our example of a bloom filter with 1024 entries and 5 hash functions,"},{"line_number":81,"context_line":" * hashing an entry might yield 77,323, 662, 789, and 8. That would then"},{"line_number":82,"context_line":" * increase the buckets (bit counters) at the the index positions 77, 323,"},{"line_number":83,"context_line":" * 662, 789, and 8. If an entry is at its maximum (15 for 4 bits counters)"},{"line_number":84,"context_line":" * it will stop increasing the counter."},{"line_number":85,"context_line":" *"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"14774281_484af281","line":82,"in_reply_to":"3593e6d1_ffce2ece","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"}],"src/openvpn/multi.c":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":334,"context_line":"                                                     t-\u003eoptions.cf_per);"},{"line_number":335,"context_line":"    m-\u003einitial_rate_limiter \u003d initial_rate_limit_init(t-\u003eoptions.cf_initial_max,"},{"line_number":336,"context_line":"                                                      t-\u003eoptions.cf_initial_per,"},{"line_number":337,"context_line":"                                                      \u0026t-\u003eoptions.initial_cf_bloom_config);"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    /*"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"15742640_4a083830","line":337,"updated":"2026-10-26 12:10:21.000000000","message":"`\u0026t-\u003eoptions.initial_cf_bloom_config` can obviously never be `NULL`, so the filter is always allocated even without `--connect-freq-initial-bloom-limit`.\n\nMaybe intended?","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":334,"context_line":"                                                     t-\u003eoptions.cf_per);"},{"line_number":335,"context_line":"    m-\u003einitial_rate_limiter \u003d initial_rate_limit_init(t-\u003eoptions.cf_initial_max,"},{"line_number":336,"context_line":"                                                      t-\u003eoptions.cf_initial_per,"},{"line_number":337,"context_line":"                                                      \u0026t-\u003eoptions.initial_cf_bloom_config);"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    /*"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"390e281f_1be91ea7","line":337,"in_reply_to":"15742640_4a083830","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"568b45cbdfce1b44c231113aa9a5309b768d9ceb","unresolved":true,"context_lines":[{"line_number":336,"context_line":"    m-\u003einitial_rate_limiter \u003d initial_rate_limit_init(t-\u003eoptions.cf_initial_max,"},{"line_number":337,"context_line":"                                                      t-\u003eoptions.cf_initial_per,"},{"line_number":338,"context_line":"                                                      \u0026t-\u003eoptions.initial_cf_bloom_config);"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"    /*"},{"line_number":342,"context_line":"     * Allocate broadcast/multicast buffer list"}],"source_content_type":"text/x-csrc","patch_set":12,"id":"21ea9489_7a201d0d","line":339,"updated":"2026-11-06 12:05:01.000000000","message":"The only change in this file seems to be only clang-format churn. Please remove this file from the commit.","commit_id":"6082437e8d6fdfa1415ddd74f57c8e4897a78ade"}],"src/openvpn/options.c":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":2643,"context_line":"{"},{"line_number":2644,"context_line":"    while (ft)"},{"line_number":2645,"context_line":"    {"},{"line_number":2646,"context_line":"        if (ft-\u003elimit \u003c limit)"},{"line_number":2647,"context_line":"        {"},{"line_number":2648,"context_line":"            msg(M_WARN, \"Note: --connect-freq-initial-bloom-limit %s %d %d \""},{"line_number":2649,"context_line":"                        \"has a larger limit than connect-freq-limit-initial \""}],"source_content_type":"text/x-csrc","patch_set":11,"id":"3bedc9b0_320a7f1a","line":2646,"updated":"2026-10-26 12:10:21.000000000","message":"Is this check inverted? The message below reads like it expects `\u003e` here.","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":2643,"context_line":"{"},{"line_number":2644,"context_line":"    while (ft)"},{"line_number":2645,"context_line":"    {"},{"line_number":2646,"context_line":"        if (ft-\u003elimit \u003c limit)"},{"line_number":2647,"context_line":"        {"},{"line_number":2648,"context_line":"            msg(M_WARN, \"Note: --connect-freq-initial-bloom-limit %s %d %d \""},{"line_number":2649,"context_line":"                        \"has a larger limit than connect-freq-limit-initial \""}],"source_content_type":"text/x-csrc","patch_set":11,"id":"670bf33d_ba9953d4","line":2646,"in_reply_to":"3bedc9b0_320a7f1a","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":2647,"context_line":"        {"},{"line_number":2648,"context_line":"            msg(M_WARN, \"Note: --connect-freq-initial-bloom-limit %s %d %d \""},{"line_number":2649,"context_line":"                        \"has a larger limit than connect-freq-limit-initial \""},{"line_number":2650,"context_line":"                        \"limit (%d).\","},{"line_number":2651,"context_line":"                family, ft-\u003enetmask, ft-\u003elimit, limit);"},{"line_number":2652,"context_line":"        }"},{"line_number":2653,"context_line":"        ft \u003d ft-\u003enext;"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"a98c18ba_6413bc93","line":2650,"updated":"2026-10-26 12:10:21.000000000","message":"I can\u0027t find `connect-freq-limit-initial` anywhere. It doesn\u0027t appear to be a valid option.","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":2647,"context_line":"        {"},{"line_number":2648,"context_line":"            msg(M_WARN, \"Note: --connect-freq-initial-bloom-limit %s %d %d \""},{"line_number":2649,"context_line":"                        \"has a larger limit than connect-freq-limit-initial \""},{"line_number":2650,"context_line":"                        \"limit (%d).\","},{"line_number":2651,"context_line":"                family, ft-\u003enetmask, ft-\u003elimit, limit);"},{"line_number":2652,"context_line":"        }"},{"line_number":2653,"context_line":"        ft \u003d ft-\u003enext;"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"d2ad967e_de239558","line":2650,"in_reply_to":"a98c18ba_6413bc93","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":6034,"context_line":"        options-\u003einitial_cf_bloom_config.size \u003d cf_bloom_size;"},{"line_number":6035,"context_line":"        if (p[2])"},{"line_number":6036,"context_line":"        {"},{"line_number":6037,"context_line":"            int num_hash \u003d atoi(p[1]);"},{"line_number":6038,"context_line":"            if (num_hash \u003c\u003d 0)"},{"line_number":6039,"context_line":"            {"},{"line_number":6040,"context_line":"                msg(msglevel, \"--connect-freq-initial-bloom-size number of hash \""}],"source_content_type":"text/x-csrc","patch_set":11,"id":"db55ae2b_f8cecbe1","line":6037,"updated":"2026-10-26 12:10:21.000000000","message":"This should be `p[2]`.","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":6034,"context_line":"        options-\u003einitial_cf_bloom_config.size \u003d cf_bloom_size;"},{"line_number":6035,"context_line":"        if (p[2])"},{"line_number":6036,"context_line":"        {"},{"line_number":6037,"context_line":"            int num_hash \u003d atoi(p[1]);"},{"line_number":6038,"context_line":"            if (num_hash \u003c\u003d 0)"},{"line_number":6039,"context_line":"            {"},{"line_number":6040,"context_line":"                msg(msglevel, \"--connect-freq-initial-bloom-size number of hash \""}],"source_content_type":"text/x-csrc","patch_set":11,"id":"bfe20ad5_d974ebcf","line":6037,"in_reply_to":"db55ae2b_f8cecbe1","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"}],"src/openvpn/ovpn_dco_linux.h":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":15,"context_line":"{"},{"line_number":16,"context_line":"    OVPN_CIPHER_ALG_NONE,"},{"line_number":17,"context_line":"    OVPN_CIPHER_ALG_AES_GCM,"},{"line_number":18,"context_line":"    OVPN_CIPHER_ALG_CHACHA20_POLY1305,"},{"line_number":19,"context_line":"};"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"enum ovpn_del_peer_reason"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"d5e076fe_a0280445","line":18,"updated":"2026-10-26 12:10:21.000000000","message":"This whole file seems to be in this changeset only because it has been automatically reformatted. It should probably be removed, as there\u0027s nothing to review here.","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":15,"context_line":"{"},{"line_number":16,"context_line":"    OVPN_CIPHER_ALG_NONE,"},{"line_number":17,"context_line":"    OVPN_CIPHER_ALG_AES_GCM,"},{"line_number":18,"context_line":"    OVPN_CIPHER_ALG_CHACHA20_POLY1305,"},{"line_number":19,"context_line":"};"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"enum ovpn_del_peer_reason"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"62ae13a1_87aa34c2","line":18,"in_reply_to":"d5e076fe_a0280445","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"568b45cbdfce1b44c231113aa9a5309b768d9ceb","unresolved":true,"context_lines":[{"line_number":1,"context_line":"/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */"},{"line_number":2,"context_line":"/* Do not edit directly, auto-generated from: */"},{"line_number":3,"context_line":"/*\tDocumentation/netlink/specs/ovpn.yaml */"},{"line_number":4,"context_line":"/* YNL-GEN uapi header */"}],"source_content_type":"text/x-csrc","patch_set":12,"id":"7381dc7a_4d4cf28c","line":1,"updated":"2026-11-06 12:05:01.000000000","message":"This whole file seems to be nothing but clang-format churn. Please remove it from this commit.","commit_id":"6082437e8d6fdfa1415ddd74f57c8e4897a78ade"}],"src/openvpn/reflect_filter.c":[{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"a2ec20f5c9eef16ab062006f5ad13d2aac5a916d","unresolved":true,"context_lines":[{"line_number":40,"context_line":"#include \"crypto.h\""},{"line_number":41,"context_line":"#include \"reflect_filter.h\""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"static bool"},{"line_number":44,"context_line":"reflect_filter_rate_limit_check(struct initial_packet_rate_limit *irl)"},{"line_number":45,"context_line":"{"},{"line_number":46,"context_line":"    if (now \u003e irl-\u003elast_period_reset + irl-\u003eperiod_length)"},{"line_number":47,"context_line":"    {"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"e570d1bc_a93710c4","line":44,"range":{"start_line":43,"start_character":0,"end_line":44,"end_character":21},"updated":"2024-09-21 14:26:47.000000000","message":"Remove empty line","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":40,"context_line":"#include \"crypto.h\""},{"line_number":41,"context_line":"#include \"reflect_filter.h\""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"static bool"},{"line_number":44,"context_line":"reflect_filter_rate_limit_check(struct initial_packet_rate_limit *irl)"},{"line_number":45,"context_line":"{"},{"line_number":46,"context_line":"    if (now \u003e irl-\u003elast_period_reset + irl-\u003eperiod_length)"},{"line_number":47,"context_line":"    {"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"6fa0024d_0c16878c","line":44,"range":{"start_line":43,"start_character":0,"end_line":44,"end_character":21},"in_reply_to":"e570d1bc_a93710c4","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"a2ec20f5c9eef16ab062006f5ad13d2aac5a916d","unresolved":true,"context_lines":[{"line_number":113,"context_line":"        struct in6_addr in6;"},{"line_number":114,"context_line":"    };"},{"line_number":115,"context_line":"    int netmask;"},{"line_number":116,"context_line":"    /* we keep the count in the key instead of in the bloom filter table as"},{"line_number":117,"context_line":"     * can then keep the counter in the bloom filter itself small (2 bits)"},{"line_number":118,"context_line":"     * and bloom filter usage is the same for 20000 request from the same IP"},{"line_number":119,"context_line":"     * (20k entries with different count but same IP) and from 20000 random ips"},{"line_number":120,"context_line":"     * (20k entries with count 1 but different IP) */"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"71c672e1_c93872de","line":117,"range":{"start_line":116,"start_character":1,"end_line":117,"end_character":74},"updated":"2024-09-21 14:26:47.000000000","message":"...as we can then...","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b57e2fb504e76aaad8e9920a3bd06001aa8eb8e3","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        struct in6_addr in6;"},{"line_number":114,"context_line":"    };"},{"line_number":115,"context_line":"    int netmask;"},{"line_number":116,"context_line":"    /* we keep the count in the key instead of in the bloom filter table as"},{"line_number":117,"context_line":"     * can then keep the counter in the bloom filter itself small (2 bits)"},{"line_number":118,"context_line":"     * and bloom filter usage is the same for 20000 request from the same IP"},{"line_number":119,"context_line":"     * (20k entries with different count but same IP) and from 20000 random ips"},{"line_number":120,"context_line":"     * (20k entries with count 1 but different IP) */"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"4f9db450_35e4dab3","line":117,"range":{"start_line":116,"start_character":1,"end_line":117,"end_character":74},"in_reply_to":"71c672e1_c93872de","updated":"2026-09-15 12:00:56.000000000","message":"Done","commit_id":"9ad1a4d4b8c54017f2a5fdb12c5697a85bde5d5b"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":116,"context_line":"    };"},{"line_number":117,"context_line":"    int netmask;"},{"line_number":118,"context_line":"    /* we keep the count in the key instead of in the bloom filter table as"},{"line_number":119,"context_line":"     * can then keep the counter in the bloom filter itself small (2 bits)"},{"line_number":120,"context_line":"     * and bloom filter usage is the same for 20000 request from the same IP"},{"line_number":121,"context_line":"     * (20k entries with different count but same IP) and from 20000 random ips"},{"line_number":122,"context_line":"     * (20k entries with count 1 but different IP) */"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"1eb65eb7_fe2b900c","line":119,"updated":"2026-10-26 12:10:21.000000000","message":"2 bits? Aren\u0027t the counters 4 bits (as mentioned in comments elsewhere)?","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    };"},{"line_number":117,"context_line":"    int netmask;"},{"line_number":118,"context_line":"    /* we keep the count in the key instead of in the bloom filter table as"},{"line_number":119,"context_line":"     * can then keep the counter in the bloom filter itself small (2 bits)"},{"line_number":120,"context_line":"     * and bloom filter usage is the same for 20000 request from the same IP"},{"line_number":121,"context_line":"     * (20k entries with different count but same IP) and from 20000 random ips"},{"line_number":122,"context_line":"     * (20k entries with count 1 but different IP) */"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"290380ee_c83ca2ff","line":119,"in_reply_to":"1eb65eb7_fe2b900c","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":218,"context_line":"    else"},{"line_number":219,"context_line":"    {"},{"line_number":220,"context_line":"        return low;"},{"line_number":221,"context_line":"    }"},{"line_number":222,"context_line":"}"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"/**"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"6199e9bf_3af1a187","line":221,"updated":"2026-10-26 12:10:21.000000000","message":"The `if (low \u003d\u003d 4)` check here is unnecessary, since just `return low;` instead of the whole branch does the same thing.","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":218,"context_line":"    else"},{"line_number":219,"context_line":"    {"},{"line_number":220,"context_line":"        return low;"},{"line_number":221,"context_line":"    }"},{"line_number":222,"context_line":"}"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"/**"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"849404b7_04a02627","line":221,"in_reply_to":"6199e9bf_3af1a187","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":287,"context_line":"        /* fetch the current count of the key in the bloom filter */"},{"line_number":288,"context_line":"        int result \u003d reflect_lookup_bf_key(irl-\u003ebf, \u0026key, tier-\u003elimit);"},{"line_number":289,"context_line":"        struct gc_arena gc \u003d gc_new();"},{"line_number":290,"context_line":"        gc_free(\u0026gc);"},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"        switch (action)"},{"line_number":293,"context_line":"        {"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"f77fcc74_01ea4a42","line":290,"updated":"2026-10-26 12:10:21.000000000","message":"These `gc_new()`/`gc_free()` calls appear to be dead code.","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":287,"context_line":"        /* fetch the current count of the key in the bloom filter */"},{"line_number":288,"context_line":"        int result \u003d reflect_lookup_bf_key(irl-\u003ebf, \u0026key, tier-\u003elimit);"},{"line_number":289,"context_line":"        struct gc_arena gc \u003d gc_new();"},{"line_number":290,"context_line":"        gc_free(\u0026gc);"},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"        switch (action)"},{"line_number":293,"context_line":"        {"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"b01c6a66_5345a722","line":290,"in_reply_to":"f77fcc74_01ea4a42","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":337,"context_line":"    if (now \u003e irl-\u003elast_period_reset + irl-\u003eperiod_length)"},{"line_number":338,"context_line":"    {"},{"line_number":339,"context_line":"        bloom_filter_check_reset(irl);"},{"line_number":340,"context_line":"        bloom_clear(irl-\u003ebf);"},{"line_number":341,"context_line":"    }"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"    return bloom_filter_action(irl, from, REFLECT_CHECK);"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"bd61c9f7_b22c3e67","line":340,"updated":"2026-10-26 12:10:21.000000000","message":"`bloom_filter_check_reset()` already calls `bloom_clear()`, no need to call it again explicitly.","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":337,"context_line":"    if (now \u003e irl-\u003elast_period_reset + irl-\u003eperiod_length)"},{"line_number":338,"context_line":"    {"},{"line_number":339,"context_line":"        bloom_filter_check_reset(irl);"},{"line_number":340,"context_line":"        bloom_clear(irl-\u003ebf);"},{"line_number":341,"context_line":"    }"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"    return bloom_filter_action(irl, from, REFLECT_CHECK);"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"a7c98148_5726531a","line":340,"in_reply_to":"bd61c9f7_b22c3e67","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"c27042233a7505273e75e020a8beb5dc6eca0c31","unresolved":true,"context_lines":[{"line_number":448,"context_line":"{"},{"line_number":449,"context_line":"    gc_free(\u0026irl-\u003egc);"},{"line_number":450,"context_line":"    free(irl);"},{"line_number":451,"context_line":"    irl \u003d NULL;"},{"line_number":452,"context_line":"}"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"e57ef488_9f474b46","line":451,"updated":"2026-10-26 12:10:21.000000000","message":"This is dead code, as it sets the stack pointer parameter to `NULL` with no effects inside the function and no change for the caller.","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"68e5abb7bb286af7b585d20607dfae47c1c712be","unresolved":false,"context_lines":[{"line_number":448,"context_line":"{"},{"line_number":449,"context_line":"    gc_free(\u0026irl-\u003egc);"},{"line_number":450,"context_line":"    free(irl);"},{"line_number":451,"context_line":"    irl \u003d NULL;"},{"line_number":452,"context_line":"}"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"9908e153_1fb91c03","line":451,"in_reply_to":"e57ef488_9f474b46","updated":"2026-11-06 11:11:48.000000000","message":"Done","commit_id":"041f266f134ebc625810c269c2749f5571cca225"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"568b45cbdfce1b44c231113aa9a5309b768d9ceb","unresolved":true,"context_lines":[{"line_number":5,"context_line":" *             packet encryption, packet authentication, and"},{"line_number":6,"context_line":" *             packet compression."},{"line_number":7,"context_line":" *"},{"line_number":8,"context_line":" *  Copyright (C) 2023-2026 OpenVPN Inc \u003csales@openvpn.net\u003e"},{"line_number":9,"context_line":" *  Copyright (C) 2023-2026 Arne Schwabe \u003carne@rfc2549.org\u003e"},{"line_number":10,"context_line":" *"},{"line_number":11,"context_line":" *  This program is free software; you can redistribute it and/or modify"}],"source_content_type":"text/x-csrc","patch_set":12,"id":"261b4f8c_f6735f81","line":8,"updated":"2026-11-06 12:05:01.000000000","message":"Why has the year here been changed from 2022?","commit_id":"6082437e8d6fdfa1415ddd74f57c8e4897a78ade"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"568b45cbdfce1b44c231113aa9a5309b768d9ceb","unresolved":true,"context_lines":[{"line_number":133,"context_line":"    int bytes_to_clear \u003d bits_to_clear / 8;"},{"line_number":134,"context_line":"    bits_to_clear \u003d bits_to_clear % 8;"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    memset(\u0026ret.in6.s6_addr[15 - bytes_to_clear], 0x00, bytes_to_clear);"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    ret.in6.s6_addr[15 - bytes_to_clear - 1] \u0026\u003d (0xff \u003c\u003c bits_to_clear);"},{"line_number":139,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":12,"id":"ecc5e00e_9f7fc8d6","line":136,"updated":"2026-11-06 12:05:01.000000000","message":"ASan reports a stack-buffer-underflow, where with `bytes_to_clear \u003d 16`, the memset writes to `s6_addr[-1]`.","commit_id":"6082437e8d6fdfa1415ddd74f57c8e4897a78ade"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"568b45cbdfce1b44c231113aa9a5309b768d9ceb","unresolved":true,"context_lines":[{"line_number":422,"context_line":"    irl-\u003ecurr_period_counter \u003d 0;"},{"line_number":423,"context_line":"    irl-\u003elast_period_reset \u003d 0;"},{"line_number":424,"context_line":""},{"line_number":425,"context_line":"    if (bconf-\u003einet6_tiers || bconf-\u003einet_tiers)"},{"line_number":426,"context_line":"    {"},{"line_number":427,"context_line":"        irl-\u003ebloom_conf \u003d *bconf;"},{"line_number":428,"context_line":"        init_bloom_filter(irl);"}],"source_content_type":"text/x-csrc","patch_set":12,"id":"934363fc_a4d36691","line":425,"updated":"2026-11-06 12:05:01.000000000","message":"There are tests that pass `NULL` for `bconf`, so this would be a `NULL`-dereference.","commit_id":"6082437e8d6fdfa1415ddd74f57c8e4897a78ade"}]}
