)]}'
{"src/openvpn/circ_list.h":[{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"c896f8909ec6dc06c6d29698121b81c737214da2","unresolved":true,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"#define CIRC_LIST_INDEX(obj, index)                                                     \\"},{"line_number":50,"context_line":"    modulo_add((obj)-\u003ex_head, index_verify((index), (obj)-\u003ex_size, __FILE__, __LINE__), \\"},{"line_number":51,"context_line":"               (obj)-\u003ex_cap)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"#define CIRC_LIST_ITEM(obj, index) ((obj)-\u003ex_list[CIRC_LIST_INDEX((obj), (index))])"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":7,"id":"dfc48ec0_ef064244","line":51,"updated":"2026-06-12 14:43:01.000000000","message":"So the array index and the size should be the same type. Before we had int for both. Now we have size_t for the size but still int for the index. \n\nThis leads all kind of very weird (theorectically) corner case bugs when the size can be (theoretically) larger than an index.","commit_id":"c80b7640aab6ada319d989df363df39135c58aad"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"3b9e94cde49c017c5b1bf621dd4b01848c915361","unresolved":true,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"#define CIRC_LIST_INDEX(obj, index)                                                     \\"},{"line_number":50,"context_line":"    modulo_add((obj)-\u003ex_head, index_verify((index), (obj)-\u003ex_size, __FILE__, __LINE__), \\"},{"line_number":51,"context_line":"               (obj)-\u003ex_cap)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"#define CIRC_LIST_ITEM(obj, index) ((obj)-\u003ex_list[CIRC_LIST_INDEX((obj), (index))])"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":7,"id":"e6d5f35a_344027b9","line":51,"in_reply_to":"dfc48ec0_ef064244","updated":"2026-08-14 11:11:54.000000000","message":"This is wrong. What I changed the value of is the size in bytes (x_sizeof), not the number of array elements (x_size and x_cap). x_sizeof will be always significantly larger than those.\n\nAs I have implied x_sizeof is not really used anyway. It is only printed once in packet_id_debug_print and otherwise ignored.\n\nSo I think this change is fine.","commit_id":"c80b7640aab6ada319d989df363df39135c58aad"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"395acd3e87a392ce7a7f99e3c9eb02632d93a421","unresolved":true,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"#define CIRC_LIST_INDEX(obj, index)                                                     \\"},{"line_number":50,"context_line":"    modulo_add((obj)-\u003ex_head, index_verify((index), (obj)-\u003ex_size, __FILE__, __LINE__), \\"},{"line_number":51,"context_line":"               (obj)-\u003ex_cap)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"#define CIRC_LIST_ITEM(obj, index) ((obj)-\u003ex_list[CIRC_LIST_INDEX((obj), (index))])"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":7,"id":"492532d5_ddbc4d93","line":51,"in_reply_to":"e6d5f35a_344027b9","updated":"2026-08-18 14:51:25.000000000","message":"So I would rather than have x_sizeof removed if we really do not use it appart from a debug statement as I don\u0027t think mixing the types is good here.","commit_id":"c80b7640aab6ada319d989df363df39135c58aad"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"3f8c5ece87d62b1012065fbbc13c7abf6cb185f6","unresolved":true,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"#define CIRC_LIST_ALLOC(dest, list_type, size)                                    \\"},{"line_number":62,"context_line":"    {                                                                             \\"},{"line_number":63,"context_line":"        const size_t so \u003d sizeof(list_type) + sizeof((dest)-\u003ex_list[0]) * (size); \\"},{"line_number":64,"context_line":"        (dest) \u003d (list_type *)malloc(so);                                         \\"},{"line_number":65,"context_line":"        check_malloc_return(dest);                                                \\"},{"line_number":66,"context_line":"        memset((dest), 0, so);                                                    \\"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"bf558a9d_7044c752","line":63,"updated":"2026-08-17 18:43:45.000000000","message":"Strictly speaking, if `size` is `int` this still breaks `-Wsign-conversion`, but we\u0027re using `-Wno-sign-conversion` today, so it should be fine for now.","commit_id":"8535abbeca3e048d7a90af0e14bd5d812649fe86"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"7194360f827a86c453e21917a0c3a0ba89a290cd","unresolved":true,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"#define CIRC_LIST_ALLOC(dest, list_type, size)                                    \\"},{"line_number":62,"context_line":"    {                                                                             \\"},{"line_number":63,"context_line":"        const size_t so \u003d sizeof(list_type) + sizeof((dest)-\u003ex_list[0]) * (size); \\"},{"line_number":64,"context_line":"        (dest) \u003d (list_type *)malloc(so);                                         \\"},{"line_number":65,"context_line":"        check_malloc_return(dest);                                                \\"},{"line_number":66,"context_line":"        memset((dest), 0, so);                                                    \\"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"5a2c3702_25dbc08b","line":63,"in_reply_to":"2e08c787_250f00f9","updated":"2026-08-18 15:14:07.000000000","message":"FWIW that was just an observation on my part, not a big deal. We will probably do the work of removing `-Wsign-conversion` warnings as well at some point, and this can be done then if no other changes are requested now other than this.","commit_id":"8535abbeca3e048d7a90af0e14bd5d812649fe86"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"395acd3e87a392ce7a7f99e3c9eb02632d93a421","unresolved":true,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"#define CIRC_LIST_ALLOC(dest, list_type, size)                                    \\"},{"line_number":62,"context_line":"    {                                                                             \\"},{"line_number":63,"context_line":"        const size_t so \u003d sizeof(list_type) + sizeof((dest)-\u003ex_list[0]) * (size); \\"},{"line_number":64,"context_line":"        (dest) \u003d (list_type *)malloc(so);                                         \\"},{"line_number":65,"context_line":"        check_malloc_return(dest);                                                \\"},{"line_number":66,"context_line":"        memset((dest), 0, so);                                                    \\"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"2e08c787_250f00f9","line":63,"in_reply_to":"bf558a9d_7044c752","updated":"2026-08-18 14:51:25.000000000","message":"maybe then we could just have an explicit cast to size_t here?","commit_id":"8535abbeca3e048d7a90af0e14bd5d812649fe86"}],"src/openvpn/packet_id.c":[{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"c896f8909ec6dc06c6d29698121b81c737214da2","unresolved":true,"context_lines":[{"line_number":252,"context_line":"                                p-\u003emax_backtrack_stat);"},{"line_number":253,"context_line":"            }"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"            if (diff \u003e\u003d (packet_id_type)CIRC_LIST_SIZE(p-\u003eseq_list))"},{"line_number":256,"context_line":"            {"},{"line_number":257,"context_line":"                packet_id_debug(D_PID_DEBUG_LOW, p, pin, \"PID_ERR large diff\", diff);"},{"line_number":258,"context_line":"                return false;"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"81055b9d_6bc76950","line":255,"updated":"2026-06-12 14:43:01.000000000","message":"Technically since CIRC_LIST_SIZE is no longer restricted to (int), this now opens up a theoretical problem unless we ensure or ASSERT on CIRC_LIST_SIZE always smaller than INT_MAX.\n\nI think we can ignore this but we might want to add a comment here?","commit_id":"c80b7640aab6ada319d989df363df39135c58aad"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"16cdf6d420497f757ac428446101a99dd4392ac9","unresolved":true,"context_lines":[{"line_number":252,"context_line":"                                p-\u003emax_backtrack_stat);"},{"line_number":253,"context_line":"            }"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"            if (diff \u003e\u003d (packet_id_type)CIRC_LIST_SIZE(p-\u003eseq_list))"},{"line_number":256,"context_line":"            {"},{"line_number":257,"context_line":"                packet_id_debug(D_PID_DEBUG_LOW, p, pin, \"PID_ERR large diff\", diff);"},{"line_number":258,"context_line":"                return false;"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"d746266a_5080ebe3","line":255,"in_reply_to":"81055b9d_6bc76950","updated":"2026-08-14 11:15:21.000000000","message":"Again you\u0027re confusing x_size and x_sizeof","commit_id":"c80b7640aab6ada319d989df363df39135c58aad"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"c896f8909ec6dc06c6d29698121b81c737214da2","unresolved":true,"context_lines":[{"line_number":258,"context_line":"                return false;"},{"line_number":259,"context_line":"            }"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"            {"},{"line_number":262,"context_line":"                const time_t v \u003d CIRC_LIST_ITEM(p-\u003eseq_list, (int)diff);"},{"line_number":263,"context_line":"                if (v \u003d\u003d 0)"},{"line_number":264,"context_line":"                {"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"4a9c0a52_c7040115","line":261,"updated":"2026-06-12 14:43:01.000000000","message":"These brackets are confusing. Can we remove them?","commit_id":"c80b7640aab6ada319d989df363df39135c58aad"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"16cdf6d420497f757ac428446101a99dd4392ac9","unresolved":false,"context_lines":[{"line_number":258,"context_line":"                return false;"},{"line_number":259,"context_line":"            }"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"            {"},{"line_number":262,"context_line":"                const time_t v \u003d CIRC_LIST_ITEM(p-\u003eseq_list, (int)diff);"},{"line_number":263,"context_line":"                if (v \u003d\u003d 0)"},{"line_number":264,"context_line":"                {"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"6fab0707_3187f2c9","line":261,"in_reply_to":"4a9c0a52_c7040115","updated":"2026-08-14 11:15:21.000000000","message":"Done","commit_id":"c80b7640aab6ada319d989df363df39135c58aad"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"3f8c5ece87d62b1012065fbbc13c7abf6cb185f6","unresolved":true,"context_lines":[{"line_number":655,"context_line":"{"},{"line_number":656,"context_line":"    uint64_t packet_id;"},{"line_number":657,"context_line":""},{"line_number":658,"context_line":""},{"line_number":659,"context_line":"    if (!buf_read(buf, \u0026packet_id, sizeof(packet_id)))"},{"line_number":660,"context_line":"    {"},{"line_number":661,"context_line":"        return 0;"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"01de02bf_b763fbda","side":"PARENT","line":658,"updated":"2026-08-17 18:43:45.000000000","message":"Accidental newline insert?","commit_id":"6ff04417a4250b558da06a3b58b5cda697cd5ee3"}]}
