)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"7008e9dfc229db3fc94051e6011d798b6a55b861","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"c03af54f_632e413d","updated":"2026-11-04 16:27:10.000000000","message":"Giving it +1 since Arne is also now reviewing it.","commit_id":"cdbf85ced0fbcfffe1527f249ed44aeae5f048d4"},{"author":{"_account_id":1000035,"name":"Steffan Karger","display_name":"Steffan Karger","email":"steffan@karger.me","username":"syzzer","status":"Commits and comments are my own views, not those of my employer."},"change_message_id":"0f284fc516bf1550f50effe63df9ab61434fbaa2","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"dabf5458_2a045514","updated":"2026-11-15 22:06:00.000000000","message":"Looks good in general, but two minor nits.","commit_id":"7aedc6fa5691436ccd65f17241fb66478b785b5e"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"4c304e847cce44c7eac6051b1a18c8c226b9a1f8","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"d9230214_1a6fe1f2","updated":"2026-11-16 14:40:15.000000000","message":"Steffan\u0027s comments addressed. Also both of Arne\u0027s points are addressed from patchset 6.","commit_id":"9c8fabfb154d8e55b56aef80ed34175a48cf2504"}],"src/openvpn/control_msg.c":[{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"d68f72c418cb311b7a98483210246aae47b67604","unresolved":true,"context_lines":[{"line_number":31,"context_line":"bool"},{"line_number":32,"context_line":"ctrl_msg_tlv_write_header(struct buffer *buf, uint16_t type, bool optional, uint16_t value_len)"},{"line_number":33,"context_line":"{"},{"line_number":34,"context_line":"    uint16_t field \u003d type \u0026 CTRL_MSG_TLV_TYPE_MASK;"},{"line_number":35,"context_line":"    if (optional)"},{"line_number":36,"context_line":"    {"},{"line_number":37,"context_line":"        field |\u003d CTRL_MSG_TLV_OPTIONAL_FLAG;"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"fd568f0b_59ce8397","line":34,"updated":"2026-09-30 14:35:50.000000000","message":"Is there a valid reason why type might be different from field here? I wonder whether we should ASSERT?","commit_id":"09ca456f4fe87a0c765407eecd86e2b0f944a300"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"af3a402559755941272de0997301beee7a7afc65","unresolved":false,"context_lines":[{"line_number":31,"context_line":"bool"},{"line_number":32,"context_line":"ctrl_msg_tlv_write_header(struct buffer *buf, uint16_t type, bool optional, uint16_t value_len)"},{"line_number":33,"context_line":"{"},{"line_number":34,"context_line":"    uint16_t field \u003d type \u0026 CTRL_MSG_TLV_TYPE_MASK;"},{"line_number":35,"context_line":"    if (optional)"},{"line_number":36,"context_line":"    {"},{"line_number":37,"context_line":"        field |\u003d CTRL_MSG_TLV_OPTIONAL_FLAG;"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"5bba6d37_4f3a205c","line":34,"in_reply_to":"fd568f0b_59ce8397","updated":"2026-10-01 07:36:51.000000000","message":"no reason. Will add an assert.","commit_id":"09ca456f4fe87a0c765407eecd86e2b0f944a300"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"d68f72c418cb311b7a98483210246aae47b67604","unresolved":true,"context_lines":[{"line_number":73,"context_line":"        return false; /* fewer than 4 bytes left: truncated header */"},{"line_number":74,"context_line":"    }"},{"line_number":75,"context_line":"    /* Advance past the value; fails if buf is shorter than the header claims. */"},{"line_number":76,"context_line":"    uint8_t *v \u003d buf_read_alloc(buf, hdr-\u003evalue_len);"},{"line_number":77,"context_line":"    if (!v)"},{"line_number":78,"context_line":"    {"},{"line_number":79,"context_line":"        return false;"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"df6ec7b6_9c4db79c","line":76,"updated":"2026-09-30 14:35:50.000000000","message":"cppcheck says this should be const","commit_id":"09ca456f4fe87a0c765407eecd86e2b0f944a300"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"af3a402559755941272de0997301beee7a7afc65","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        return false; /* fewer than 4 bytes left: truncated header */"},{"line_number":74,"context_line":"    }"},{"line_number":75,"context_line":"    /* Advance past the value; fails if buf is shorter than the header claims. */"},{"line_number":76,"context_line":"    uint8_t *v \u003d buf_read_alloc(buf, hdr-\u003evalue_len);"},{"line_number":77,"context_line":"    if (!v)"},{"line_number":78,"context_line":"    {"},{"line_number":79,"context_line":"        return false;"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"2e2643a2_eeb32d45","line":76,"in_reply_to":"df6ec7b6_9c4db79c","updated":"2026-10-01 07:36:51.000000000","message":"added cppcheck to the workflow and added const.","commit_id":"09ca456f4fe87a0c765407eecd86e2b0f944a300"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"584cad584ae8aea68708872fe121297acb728819","unresolved":true,"context_lines":[{"line_number":59,"context_line":"bool"},{"line_number":60,"context_line":"ctrl_msg_tlv_read_header(struct buffer *buf, struct ctrl_msg_tlv_header *hdr)"},{"line_number":61,"context_line":"{"},{"line_number":62,"context_line":"    int field \u003d buf_read_u16(buf);"},{"line_number":63,"context_line":"    if (field \u003c 0)"},{"line_number":64,"context_line":"    {"},{"line_number":65,"context_line":"        return false;"}],"source_content_type":"text/x-csrc","patch_set":6,"id":"e27aa5e4_fdbb0623","line":62,"updated":"2026-11-12 15:35:56.000000000","message":"Checking `BLEN(buf) \u003c CTRL_MSG_TLV_HEADER_LEN` first would match the write side and not partly consume `buf` on failure cases.","commit_id":"54fb8770bb4a471837160155a0766d92cc2e0ec6"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"2c896122e08492d7f6c77c72a6c77f228620af88","unresolved":false,"context_lines":[{"line_number":59,"context_line":"bool"},{"line_number":60,"context_line":"ctrl_msg_tlv_read_header(struct buffer *buf, struct ctrl_msg_tlv_header *hdr)"},{"line_number":61,"context_line":"{"},{"line_number":62,"context_line":"    int field \u003d buf_read_u16(buf);"},{"line_number":63,"context_line":"    if (field \u003c 0)"},{"line_number":64,"context_line":"    {"},{"line_number":65,"context_line":"        return false;"}],"source_content_type":"text/x-csrc","patch_set":6,"id":"a97da6c4_e2770988","line":62,"in_reply_to":"e27aa5e4_fdbb0623","updated":"2026-11-13 08:49:34.000000000","message":"done","commit_id":"54fb8770bb4a471837160155a0766d92cc2e0ec6"},{"author":{"_account_id":1000035,"name":"Steffan Karger","display_name":"Steffan Karger","email":"steffan@karger.me","username":"syzzer","status":"Commits and comments are my own views, not those of my employer."},"change_message_id":"0f284fc516bf1550f50effe63df9ab61434fbaa2","unresolved":true,"context_lines":[{"line_number":84,"context_line":"    if (!v)"},{"line_number":85,"context_line":"    {"},{"line_number":86,"context_line":"        return false;"},{"line_number":87,"context_line":"    }"},{"line_number":88,"context_line":"    buf_set_read(value, v, hdr-\u003evalue_len);"},{"line_number":89,"context_line":"    return true;"},{"line_number":90,"context_line":"}"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"35b0f161_d5377e67","line":87,"updated":"2026-11-15 22:06:00.000000000","message":"When you return here, the TLV was only partially consumed, which might come as a surprise to future users. It would be cleaner to not consume anything from the buffer if you fail. If you insist on this behavior, it should be clearly documented.","commit_id":"7aedc6fa5691436ccd65f17241fb66478b785b5e"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"4c304e847cce44c7eac6051b1a18c8c226b9a1f8","unresolved":false,"context_lines":[{"line_number":84,"context_line":"    if (!v)"},{"line_number":85,"context_line":"    {"},{"line_number":86,"context_line":"        return false;"},{"line_number":87,"context_line":"    }"},{"line_number":88,"context_line":"    buf_set_read(value, v, hdr-\u003evalue_len);"},{"line_number":89,"context_line":"    return true;"},{"line_number":90,"context_line":"}"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"f151cdba_d94abc27","line":87,"in_reply_to":"35b0f161_d5377e67","updated":"2026-11-16 14:40:15.000000000","message":"Fixed. ctrl_msg_tlv_next() now peeks the header, checks the length and only then consumes, so shorter value leaves the buffer untouched.","commit_id":"7aedc6fa5691436ccd65f17241fb66478b785b5e"}],"src/openvpn/control_msg.h":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"4ae07cdbccc007861397ab585b6a88bfdb1a1f7c","unresolved":true,"context_lines":[{"line_number":46,"context_line":"#define CTRL_MSG_TLV_OPTIONAL_FLAG 0x8000"},{"line_number":47,"context_line":"#define CTRL_MSG_TLV_TYPE_MASK     0x7fff"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"/* The header every TLV carries: the 15-bit type and optional flag packed into"},{"line_number":50,"context_line":" * the first 16-bit field, then the length of the value that follows. */"},{"line_number":51,"context_line":"struct ctrl_msg_tlv_header"},{"line_number":52,"context_line":"{"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"34121669_0d8eb3ea","line":49,"updated":"2026-11-04 15:05:48.000000000","message":"Please make this `/**` so Doxygen picks it up.","commit_id":"f131316b0e700585165a27cd24f894ec6c9bfb3a"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"7cec2f26ce31b6692061776ef619970367c6ff43","unresolved":false,"context_lines":[{"line_number":46,"context_line":"#define CTRL_MSG_TLV_OPTIONAL_FLAG 0x8000"},{"line_number":47,"context_line":"#define CTRL_MSG_TLV_TYPE_MASK     0x7fff"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"/* The header every TLV carries: the 15-bit type and optional flag packed into"},{"line_number":50,"context_line":" * the first 16-bit field, then the length of the value that follows. */"},{"line_number":51,"context_line":"struct ctrl_msg_tlv_header"},{"line_number":52,"context_line":"{"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"b0d53211_3d4c3e2b","line":49,"in_reply_to":"34121669_0d8eb3ea","updated":"2026-11-04 15:41:35.000000000","message":"fixed","commit_id":"f131316b0e700585165a27cd24f894ec6c9bfb3a"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"584cad584ae8aea68708872fe121297acb728819","unresolved":true,"context_lines":[{"line_number":42,"context_line":"/* TLV types */"},{"line_number":43,"context_line":"#define TLV_TYPE_EARLY_NEG_FLAGS 0x0001 /* early negotiation, in the reset packets */"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"/* TLV header bit layout of the first 16-bit field */"},{"line_number":46,"context_line":"/* A TLV header is a 16-bit type/optional field plus a 16-bit length */"},{"line_number":47,"context_line":"#define CTRL_MSG_TLV_HEADER_LEN 4"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":6,"id":"7f20a6cf_6e9d416a","line":45,"updated":"2026-11-12 15:35:56.000000000","message":"Should this comment be above `CTRL_MSG_TLV_OPTIONAL_FLAG` / `CTRL_MSG_TLV_TYPE_MASK`?","commit_id":"54fb8770bb4a471837160155a0766d92cc2e0ec6"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"2c896122e08492d7f6c77c72a6c77f228620af88","unresolved":false,"context_lines":[{"line_number":42,"context_line":"/* TLV types */"},{"line_number":43,"context_line":"#define TLV_TYPE_EARLY_NEG_FLAGS 0x0001 /* early negotiation, in the reset packets */"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"/* TLV header bit layout of the first 16-bit field */"},{"line_number":46,"context_line":"/* A TLV header is a 16-bit type/optional field plus a 16-bit length */"},{"line_number":47,"context_line":"#define CTRL_MSG_TLV_HEADER_LEN 4"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":6,"id":"65473952_745b4002","line":45,"in_reply_to":"7f20a6cf_6e9d416a","updated":"2026-11-13 08:49:34.000000000","message":"done","commit_id":"54fb8770bb4a471837160155a0766d92cc2e0ec6"},{"author":{"_account_id":1000035,"name":"Steffan Karger","display_name":"Steffan Karger","email":"steffan@karger.me","username":"syzzer","status":"Commits and comments are my own views, not those of my employer."},"change_message_id":"0f284fc516bf1550f50effe63df9ab61434fbaa2","unresolved":true,"context_lines":[{"line_number":85,"context_line":" * @param hdr  filled with the type, optional flag and value length on success"},{"line_number":86,"context_line":" * @return true on success, false if there are not enough bytes for a header."},{"line_number":87,"context_line":" */"},{"line_number":88,"context_line":"bool ctrl_msg_tlv_read_header(struct buffer *buf, struct ctrl_msg_tlv_header *hdr);"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"/**"},{"line_number":91,"context_line":" * Read the next TLV from buf, advancing past its header and value. Call it"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"cebf0f0c_6ed9542c","line":88,"updated":"2026-11-15 22:06:00.000000000","message":"Do we actually need read_header externally? I could imagine a peek-like variant would be useful. A function that advances the read pointer seems meant for internal use. And even for internal use by tlv_next, a peek variant would make it easier to prevent the partial consumption (see control_msg.c).","commit_id":"7aedc6fa5691436ccd65f17241fb66478b785b5e"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"4c304e847cce44c7eac6051b1a18c8c226b9a1f8","unresolved":false,"context_lines":[{"line_number":85,"context_line":" * @param hdr  filled with the type, optional flag and value length on success"},{"line_number":86,"context_line":" * @return true on success, false if there are not enough bytes for a header."},{"line_number":87,"context_line":" */"},{"line_number":88,"context_line":"bool ctrl_msg_tlv_read_header(struct buffer *buf, struct ctrl_msg_tlv_header *hdr);"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"/**"},{"line_number":91,"context_line":" * Read the next TLV from buf, advancing past its header and value. Call it"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"7c9936cb_ad84fbd6","line":88,"in_reply_to":"cebf0f0c_6ed9542c","updated":"2026-11-16 14:40:15.000000000","message":"agreed, not needed externally. Replaced the implementation with _peek, which never advances the caller.","commit_id":"7aedc6fa5691436ccd65f17241fb66478b785b5e"}],"src/openvpn/ssl.c":[{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"e35e9fa93e18068f1e00b39184f9ab778c65e467","unresolved":true,"context_lines":[{"line_number":2662,"context_line":"                if (hdr.optional)"},{"line_number":2663,"context_line":"                {"},{"line_number":2664,"context_line":"                    break;"},{"line_number":2665,"context_line":"                }"},{"line_number":2666,"context_line":"                if (BLEN(\u0026value) !\u003d sizeof(uint16_t))"},{"line_number":2667,"context_line":"                {"},{"line_number":2668,"context_line":"                    goto error;"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"f78d1db2_263a1081","line":2665,"updated":"2026-11-04 15:57:14.000000000","message":"I don\u0027t think this is necessary. There is no problem in accept an optional bit here.","commit_id":"f131316b0e700585165a27cd24f894ec6c9bfb3a"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"eea6cca539994ee52bf03778ab2751bcc776d2fb","unresolved":false,"context_lines":[{"line_number":2662,"context_line":"                if (hdr.optional)"},{"line_number":2663,"context_line":"                {"},{"line_number":2664,"context_line":"                    break;"},{"line_number":2665,"context_line":"                }"},{"line_number":2666,"context_line":"                if (BLEN(\u0026value) !\u003d sizeof(uint16_t))"},{"line_number":2667,"context_line":"                {"},{"line_number":2668,"context_line":"                    goto error;"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"3f7427c1_5d4b4b95","line":2665,"in_reply_to":"8b8af8be_b86cc235","updated":"2026-11-09 08:35:46.000000000","message":"ok, removed that.","commit_id":"f131316b0e700585165a27cd24f894ec6c9bfb3a"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b0f60f075c570306fa3eb4989613b2c0cb383462","unresolved":true,"context_lines":[{"line_number":2662,"context_line":"                if (hdr.optional)"},{"line_number":2663,"context_line":"                {"},{"line_number":2664,"context_line":"                    break;"},{"line_number":2665,"context_line":"                }"},{"line_number":2666,"context_line":"                if (BLEN(\u0026value) !\u003d sizeof(uint16_t))"},{"line_number":2667,"context_line":"                {"},{"line_number":2668,"context_line":"                    goto error;"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"8b8af8be_b86cc235","line":2665,"in_reply_to":"dd290fdb_7fa313ee","updated":"2026-11-06 14:22:48.000000000","message":"Carrying this as extra special case that behaves different forever for no good reason other than compability with non-existing implementation that might behave different does not sound very convincing to me.","commit_id":"f131316b0e700585165a27cd24f894ec6c9bfb3a"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"b9110bda00b500b5dc3156ceba0abe1066357847","unresolved":false,"context_lines":[{"line_number":2662,"context_line":"                if (hdr.optional)"},{"line_number":2663,"context_line":"                {"},{"line_number":2664,"context_line":"                    break;"},{"line_number":2665,"context_line":"                }"},{"line_number":2666,"context_line":"                if (BLEN(\u0026value) !\u003d sizeof(uint16_t))"},{"line_number":2667,"context_line":"                {"},{"line_number":2668,"context_line":"                    goto error;"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"dd290fdb_7fa313ee","line":2665,"in_reply_to":"f78d1db2_263a1081","updated":"2026-11-04 16:21:39.000000000","message":"Removing the break would change the existing behavior. On the existing code 0x8001 falls to default and is skipped. In this new code it is parsed, and a length other than 2 fails the handshake.\n\nWhile no-one now sends 0x8001, I would still prefer not to change the behavior.","commit_id":"f131316b0e700585165a27cd24f894ec6c9bfb3a"}],"tests/unit_tests/openvpn/test_control_msg.c":[{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"d68f72c418cb311b7a98483210246aae47b67604","unresolved":true,"context_lines":[{"line_number":104,"context_line":"    assert_true(ctrl_msg_tlv_next(\u0026buf, \u0026hdr, \u0026value));"},{"line_number":105,"context_line":"    assert_int_equal(hdr.type, 0x7ff);"},{"line_number":106,"context_line":"    assert_true(hdr.optional);"},{"line_number":107,"context_line":"    assert_int_equal(BLEN(\u0026value), 4);"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    assert_true(ctrl_msg_tlv_next(\u0026buf, \u0026hdr, \u0026value));"},{"line_number":110,"context_line":"    assert_int_equal(hdr.type, 0x5);"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"0ed3b34d_0ab7fd43","line":107,"updated":"2026-09-30 14:35:50.000000000","message":"Any specific reason why you do not verify the content of the buffer here?","commit_id":"09ca456f4fe87a0c765407eecd86e2b0f944a300"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"af3a402559755941272de0997301beee7a7afc65","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    assert_true(ctrl_msg_tlv_next(\u0026buf, \u0026hdr, \u0026value));"},{"line_number":105,"context_line":"    assert_int_equal(hdr.type, 0x7ff);"},{"line_number":106,"context_line":"    assert_true(hdr.optional);"},{"line_number":107,"context_line":"    assert_int_equal(BLEN(\u0026value), 4);"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    assert_true(ctrl_msg_tlv_next(\u0026buf, \u0026hdr, \u0026value));"},{"line_number":110,"context_line":"    assert_int_equal(hdr.type, 0x5);"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"e258e02e_7d50c895","line":107,"in_reply_to":"0ed3b34d_0ab7fd43","updated":"2026-10-01 07:36:51.000000000","message":"Acknowledged","commit_id":"09ca456f4fe87a0c765407eecd86e2b0f944a300"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"1846715d5730f6a134501a14cd4048f191854379","unresolved":true,"context_lines":[{"line_number":160,"context_line":"    gc_free(\u0026gc);"},{"line_number":161,"context_line":"}"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"/* Writing fails, rather than writes a partial TLV, when buf is too small. */"},{"line_number":164,"context_line":"void"},{"line_number":165,"context_line":"test_tlv_write_no_room(void **state)"},{"line_number":166,"context_line":"{"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ad09aaf6_b44cb7d9","line":163,"updated":"2026-11-04 15:47:21.000000000","message":"The write functions don\u0027t check for space up front, so a failed write does leave a partial TLV: `BLEN(\u0026buf)` is `2` after the first call and `4` after the second. The test only checks the return values, so it passes anyway.\n\nI vaguely remember this from the prototype OpenVPN 3 implementation as well. 😀\n\nThat may be fine, in which case saying so in control_msg.h is OK.","commit_id":"de5de87aafd7ad3390d7c748f79a37cf6dd6eb24"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"b9110bda00b500b5dc3156ceba0abe1066357847","unresolved":false,"context_lines":[{"line_number":160,"context_line":"    gc_free(\u0026gc);"},{"line_number":161,"context_line":"}"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"/* Writing fails, rather than writes a partial TLV, when buf is too small. */"},{"line_number":164,"context_line":"void"},{"line_number":165,"context_line":"test_tlv_write_no_room(void **state)"},{"line_number":166,"context_line":"{"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"4c17a5b5_e55353b4","line":163,"in_reply_to":"ad09aaf6_b44cb7d9","updated":"2026-11-04 16:21:39.000000000","message":"Fixed. ctrl_msg_tlv_write_header() now reserves header + value up front, so a failed write leaves buf untouched. Also fixed the test.","commit_id":"de5de87aafd7ad3390d7c748f79a37cf6dd6eb24"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"584cad584ae8aea68708872fe121297acb728819","unresolved":true,"context_lines":[{"line_number":37,"context_line":"#include \"test_control_msg.h\""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"/* The early negotiation flags TLV of a reset packet asking a tls-crypt-v2"},{"line_number":40,"context_line":" * client to resend its WKc, as older versions wrote it by hand. */"},{"line_number":41,"context_line":"void"},{"line_number":42,"context_line":"test_tlv_write_u16_wire_format(void **state)"},{"line_number":43,"context_line":"{"}],"source_content_type":"text/x-csrc","patch_set":6,"id":"553ee3d2_c799ce91","line":40,"updated":"2026-11-12 15:35:56.000000000","message":"I think Arne -2\u0027d this in its previous version over this wording in test_pkt.c.\n\nMaybe we could cut it to just \"The early negotiation flags TLV of a reset packet asking a tls-crypt-v2 client to resend its WKc.\"?","commit_id":"54fb8770bb4a471837160155a0766d92cc2e0ec6"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"2c896122e08492d7f6c77c72a6c77f228620af88","unresolved":false,"context_lines":[{"line_number":37,"context_line":"#include \"test_control_msg.h\""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"/* The early negotiation flags TLV of a reset packet asking a tls-crypt-v2"},{"line_number":40,"context_line":" * client to resend its WKc, as older versions wrote it by hand. */"},{"line_number":41,"context_line":"void"},{"line_number":42,"context_line":"test_tlv_write_u16_wire_format(void **state)"},{"line_number":43,"context_line":"{"}],"source_content_type":"text/x-csrc","patch_set":6,"id":"7ba74c6a_8ba30567","line":40,"in_reply_to":"553ee3d2_c799ce91","updated":"2026-11-13 08:49:34.000000000","message":"yes, done","commit_id":"54fb8770bb4a471837160155a0766d92cc2e0ec6"}],"tests/unit_tests/openvpn/test_pkt.c":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"4ae07cdbccc007861397ab585b6a88bfdb1a1f7c","unresolved":true,"context_lines":[{"line_number":45,"context_line":"#include \"reliable.h\""},{"line_number":46,"context_line":"#include \"siphash.h\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"int run_control_msg_tests(void); /* test_control_msg.c */"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"int"},{"line_number":51,"context_line":"parse_line(const char *line, char **p, const int n, const char *file, const int line_num,"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"7d18d8c7_439ff91e","line":48,"updated":"2026-11-04 15:05:48.000000000","message":"This looks a little weird, testing the new functions seems to go a different way than the existing convention (I expected a `control_msg_testdriver` or ctest target).\n\nAlso if the prototype changes this will get stale.","commit_id":"f131316b0e700585165a27cd24f894ec6c9bfb3a"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"7cec2f26ce31b6692061776ef619970367c6ff43","unresolved":false,"context_lines":[{"line_number":45,"context_line":"#include \"reliable.h\""},{"line_number":46,"context_line":"#include \"siphash.h\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"int run_control_msg_tests(void); /* test_control_msg.c */"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"int"},{"line_number":51,"context_line":"parse_line(const char *line, char **p, const int n, const char *file, const int line_num,"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"368041a6_057d60e2","line":48,"in_reply_to":"7d18d8c7_439ff91e","updated":"2026-11-04 15:41:35.000000000","message":"agreed. Done the same way as test_acc.c - added test_control_msg.h, dropped the extern and the separate runner, so it\u0027s one group of 19 tests now.","commit_id":"f131316b0e700585165a27cd24f894ec6c9bfb3a"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"ede19276dbe1940dc7c67603fd06562156a420c8","unresolved":true,"context_lines":[{"line_number":658,"context_line":"}"},{"line_number":659,"context_line":""},{"line_number":660,"context_line":"/* A reset reply asking a tls-crypt-v2 client to resend its WKc ends in the"},{"line_number":661,"context_line":" * early negotiation flags TLV, the bytes older versions wrote by hand, and the"},{"line_number":662,"context_line":" * TLV parses back. */"},{"line_number":663,"context_line":"static void"},{"line_number":664,"context_line":"test_generate_reset_packet_resend_wkc(void **ut_state)"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"dd12c95c_e164daa2","line":661,"updated":"2026-11-06 14:34:43.000000000","message":"the bytes older versions wrote by hand\n\nWhat older version? And why this is relevant as a comment in the code? Should that go into the commit message?","commit_id":"cdbf85ced0fbcfffe1527f249ed44aeae5f048d4"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"eea6cca539994ee52bf03778ab2751bcc776d2fb","unresolved":false,"context_lines":[{"line_number":658,"context_line":"}"},{"line_number":659,"context_line":""},{"line_number":660,"context_line":"/* A reset reply asking a tls-crypt-v2 client to resend its WKc ends in the"},{"line_number":661,"context_line":" * early negotiation flags TLV, the bytes older versions wrote by hand, and the"},{"line_number":662,"context_line":" * TLV parses back. */"},{"line_number":663,"context_line":"static void"},{"line_number":664,"context_line":"test_generate_reset_packet_resend_wkc(void **ut_state)"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"86f423b2_b66fe100","line":661,"in_reply_to":"dd12c95c_e164daa2","updated":"2026-11-09 08:35:46.000000000","message":"The older version is the one which existed before the refactoring. Moved to the commit message.","commit_id":"cdbf85ced0fbcfffe1527f249ed44aeae5f048d4"}]}
