)]}'
{"id":"openocd~master~Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe","project":"openocd","branch":"master","attention_set":{},"removed_from_attention_set":{"1001991":{"account":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"last_update":"2025-09-12 16:41:31.000000000","reason":"Change was submitted"},"1000687":{"account":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"last_update":"2025-09-11 09:04:41.000000000","reason":"removed on reply"}},"hashtags":[],"change_id":"Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe","subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","status":"MERGED","created":"2025-09-10 04:23:44.000000000","updated":"2025-09-12 16:41:31.000000000","submitted":"2025-09-12 16:41:31.000000000","submitter":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"total_comment_count":3,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"9117","meta_rev_id":"4eac01f2b72d8bc319a22597a351359dda8584d3","_number":9117,"owner":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"all":[{"value":0,"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},{"tag":"autogenerated:gerrit:merged","value":1,"date":"2025-09-12 16:41:31.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}],"values":{"-1":"Fails"," 0":"No score","+1":"Verified"},"description":"","default_value":0},"Code-Review":{"approved":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"all":[{"tag":"autogenerated:gerrit:merged","value":2,"date":"2025-09-12 16:41:31.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},{"value":0,"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}],"values":{"-2":"This shall not be merged","-1":"I would prefer this is not merged as is"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me, approved"},"description":"","default_value":0}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2025-09-10 04:23:55.000000000","updated_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"reviewer":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"state":"CC"},{"updated":"2025-09-10 04:32:20.000000000","updated_by":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"reviewer":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"state":"REVIEWER"},{"updated":"2025-09-10 04:47:47.000000000","updated_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"reviewer":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"state":"REVIEWER"}],"messages":[{"id":"0ee5c3d03840edaf2a02f04f71212ddcfebba10d","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 04:23:44.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"cc4e6ec1f987c8441697b60527e2d6359085113e","author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"real_author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"date":"2025-09-10 04:32:20.000000000","message":"Patch Set 1: Code-Review+1\n\n(1 comment)","accounts_in_message":[],"_revision_number":1},{"id":"67d4cbba4b72e646961c46c23abaee69e0da7829","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-10 04:47:47.000000000","message":"Patch Set 1: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/20882/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/21749/ : SUCCESS","accounts_in_message":[],"_revision_number":1},{"id":"3a5dfe9eba09166f823c6cc8129ddcd189872126","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 05:20:57.000000000","message":"Uploaded patch set 2: Patch Set 1 was rebased.\n\nOutdated Votes:\n* Code-Review+1 (copy condition: \"changekind:NO_CHANGE OR is:MIN\")\n* Verified+1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":2},{"id":"f7bceb5926cbc8494d60dfbccf6d4b77235c436e","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 05:29:59.000000000","message":"Uploaded patch set 3: Patch Set 2 was rebased.","accounts_in_message":[],"_revision_number":3},{"id":"6a20a469c1b0606ad7bf1220fb3c191c90584d36","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-10 05:30:08.000000000","message":"Patch Set 2:\n\nNo Builds Executed","accounts_in_message":[],"_revision_number":2},{"id":"ad6987c390a9d9c781003ddb41952a5a3e394e1b","author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"real_author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"date":"2025-09-10 06:55:10.000000000","message":"Patch Set 3:\n\n(1 comment)","accounts_in_message":[],"_revision_number":3},{"id":"fc5c37332c24226b90a235cd9232ceb4da792e16","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 07:09:20.000000000","message":"Uploaded patch set 4: Commit message was updated.","accounts_in_message":[],"_revision_number":4},{"id":"a46459249fd761854055b4cedcb1844804c00504","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-10 07:09:23.000000000","message":"Patch Set 3:\n\nNo Builds Executed","accounts_in_message":[],"_revision_number":3},{"id":"8961a120c72ae0864c8e113af9b5b8c0b9aa75cc","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 07:10:06.000000000","message":"Patch Set 3:\n\n(1 comment)","accounts_in_message":[],"_revision_number":3},{"id":"4bf9f05b4aa9b3e560f0c2591cee6211cba60e2b","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 07:16:15.000000000","message":"Uploaded patch set 5: Patch Set 4 was rebased.","accounts_in_message":[],"_revision_number":5},{"id":"a5f84792eb49e478e706573cf4ef03609069e220","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-10 07:16:21.000000000","message":"Patch Set 4:\n\nNo Builds Executed","accounts_in_message":[],"_revision_number":4},{"id":"fa642f215bf1f024af348ae055d8900889894523","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-10 10:53:24.000000000","message":"Patch Set 5: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/20895/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/21763/ : SUCCESS","accounts_in_message":[],"_revision_number":5},{"id":"a95270d8414bdfce2fc02cee68379cb7145bffee","author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"real_author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"date":"2025-09-10 11:15:07.000000000","message":"Patch Set 5: Code-Review+2","accounts_in_message":[],"_revision_number":5},{"id":"06315f913672d597570f60de5343ce3586ba986a","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 12:28:30.000000000","message":"Uploaded patch set 6: Patch Set 5 was rebased.\n\nOutdated Votes:\n* Code-Review+2 (copy condition: \"changekind:NO_CHANGE OR is:MIN\")\n* Verified+1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":6},{"id":"5af28e0a5e03e8766967d4d4cfd35298cad64f1b","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 12:45:07.000000000","message":"Uploaded patch set 7: Patch Set 6 was rebased.","accounts_in_message":[],"_revision_number":7},{"id":"9932f03dc6299a4cfc837858447816a857386a61","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-10 12:45:13.000000000","message":"Patch Set 6: Verified+1\n\nBuild Failed \n\nhttps://build.openocd.org/job/openocd-gerrit/21766/ : SUCCESS","accounts_in_message":[],"_revision_number":6},{"id":"cf7216ca6625b5f63f6e1af920654e42ed9aa7c3","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 14:05:08.000000000","message":"Uploaded patch set 8: Patch Set 7 was rebased.","accounts_in_message":[],"_revision_number":8},{"id":"601cd5eff5c0b832b87b1f7ef09de729aaf98e1a","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-10 14:05:15.000000000","message":"Patch Set 7: Verified-1\n\nBuild Failed \n\nhttps://build.openocd.org/job/openocd-gerrit-build/20901/ : ABORTED\n\nhttps://build.openocd.org/job/openocd-gerrit/21771/ : SUCCESS","accounts_in_message":[],"_revision_number":7},{"id":"f387491049a45da3affd5de318ca78c4e8769e4a","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 15:06:31.000000000","message":"Uploaded patch set 9: Patch Set 8 was rebased.","accounts_in_message":[],"_revision_number":9},{"id":"3f6cb95eabb717309918b8531c99a0170268cbd7","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-10 15:06:44.000000000","message":"Patch Set 8:\n\nNo Builds Executed","accounts_in_message":[],"_revision_number":8},{"id":"5bba866b6aa1c6023e4c2595a37e126171e21405","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-10 16:24:18.000000000","message":"Patch Set 9: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/20908/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/21779/ : SUCCESS","accounts_in_message":[],"_revision_number":9},{"id":"927e10c81caa70e89d3cde16c22c680ca4a8b5aa","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-10 23:55:54.000000000","message":"Uploaded patch set 10: Patch Set 9 was rebased.\n\nOutdated Votes:\n* Verified+1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":10},{"id":"42231ee90973d11eb6ab56c68530547f132d0abd","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-11 02:08:14.000000000","message":"Patch Set 10: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/20912/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/21783/ : SUCCESS","accounts_in_message":[],"_revision_number":10},{"id":"560fac445a2fe5abc5f77bcb86693bc2e2b1aa32","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-11 04:48:35.000000000","message":"Uploaded patch set 11: Patch Set 10 was rebased.\n\nOutdated Votes:\n* Verified+1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":11},{"id":"7f232e21a6dac1c67c692fda264fb6ba22a46055","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"real_author":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"date":"2025-09-11 06:02:07.000000000","message":"Uploaded patch set 12: Patch Set 11 was rebased.","accounts_in_message":[],"_revision_number":12},{"id":"ab9a9d2d63eb127e901b82f356cd23979b152614","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-11 06:02:13.000000000","message":"Patch Set 11: Verified+1\n\nBuild Failed \n\nhttps://build.openocd.org/job/openocd-gerrit/21787/ : SUCCESS","accounts_in_message":[],"_revision_number":11},{"id":"43a1d032c8f448f7a8f7de9105fa4272e3418eaf","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2025-09-11 08:32:32.000000000","message":"Patch Set 12: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/20921/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/21793/ : SUCCESS","accounts_in_message":[],"_revision_number":12},{"id":"e22d8238100b306579476c6b410e028a2322a624","author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"real_author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"date":"2025-09-11 09:04:41.000000000","message":"Patch Set 12: Code-Review+2","accounts_in_message":[],"_revision_number":12},{"id":"4eac01f2b72d8bc319a22597a351359dda8584d3","tag":"autogenerated:gerrit:merged","author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"real_author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"date":"2025-09-12 16:41:31.000000000","message":"Change has been successfully cherry-picked as e10fb1e2a4bd36ea8b47eb2ddc85cccf53e05a47","accounts_in_message":[],"_revision_number":13}],"current_revision":"e10fb1e2a4bd36ea8b47eb2ddc85cccf53e05a47","revisions":{"e10fb1e2a4bd36ea8b47eb2ddc85cccf53e05a47":{"kind":"REWORK","_number":13,"created":"2025-09-12 16:41:31.000000000","uploader":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"ref":"refs/changes/17/9117/13","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/13","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/13 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/13 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/13 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/13 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/13","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/13 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"874be7dc034f0f09f25861c8545a104c6d0c3e22","subject":"tcl/target/rp2040: fix typo in the comment"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Tomas Vanek","email":"vanekt@fbl.cz","date":"2025-09-12 16:41:31.000000000","tz":0},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 (1 for \u0027$\u0027,\n1 for \u0027#\u0027, 2 for checksum, 1 for null terminator) to provide adequate space\nfor snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\nReviewed-on: https://review.openocd.org/c/openocd/+/9117\nTested-by: jenkins\nReviewed-by: Tomas Vanek \u003cvanekt@fbl.cz\u003e\n"}},"0949a6c357a2dde80d53c9eba6ad483d191b7fe7":{"kind":"TRIVIAL_REBASE","_number":12,"created":"2025-09-11 06:02:07.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/12","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/12","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/12 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/12 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/12 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/12 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/12","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/12 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"7a793223c3fd4ee7c16fceba80a620317e55e195","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-11 06:01:58.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 (1 for \u0027$\u0027,\n1 for \u0027#\u0027, 2 for checksum, 1 for null terminator) to provide adequate space\nfor snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"8ac05e8c95ad5ad68707add8a1e745670799f56d":{"kind":"TRIVIAL_REBASE","_number":9,"created":"2025-09-10 15:06:31.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/9","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/9","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/9 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/9 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/9 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/9 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/9","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/9 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"d5e62ce50539af09602a71fba4e6e80cf45754b1","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 15:06:17.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 (1 for \u0027$\u0027,\n1 for \u0027#\u0027, 2 for checksum, 1 for null terminator) to provide adequate space\nfor snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"c3dbbd56c8d5bb3677fe17a6c74a4539beb4fe8d":{"kind":"TRIVIAL_REBASE","_number":8,"created":"2025-09-10 14:05:08.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/8","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/8","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/8 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/8 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/8 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/8 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/8","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/8 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"027087bb3f75c6fdb11d54892e6064607e61c79d","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 14:04:58.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 (1 for \u0027$\u0027,\n1 for \u0027#\u0027, 2 for checksum, 1 for null terminator) to provide adequate space\nfor snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"c0ce5fd94173531e36d4e1818907d1374e347ad9":{"kind":"TRIVIAL_REBASE","_number":11,"created":"2025-09-11 04:48:35.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/11","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/11","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/11 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/11 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/11 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/11 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/11","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/11 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"1f5a39e5f6731b014718f7eb084bb47a4393e416","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-11 04:48:25.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 (1 for \u0027$\u0027,\n1 for \u0027#\u0027, 2 for checksum, 1 for null terminator) to provide adequate space\nfor snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"0698b60d2ddfff3ffc4aa0dec522268dea40c67b":{"kind":"TRIVIAL_REBASE","_number":10,"created":"2025-09-10 23:55:54.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/10","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/10","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/10 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/10 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/10 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/10 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/10","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/10 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"f91d7a18ae7c059a1475099b6d3d68f8fd53ff00","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 23:55:45.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 (1 for \u0027$\u0027,\n1 for \u0027#\u0027, 2 for checksum, 1 for null terminator) to provide adequate space\nfor snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"2397d4011578b3ec6b296ad0daa12adb2ccaabd9":{"kind":"TRIVIAL_REBASE","_number":5,"created":"2025-09-10 07:16:15.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/5","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/5","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/5 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/5 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/5 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/5 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/5","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/5 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"680f0699ebebdbfd7e7e146305aff2750843b78b","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 07:15:59.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 (1 for \u0027$\u0027,\n1 for \u0027#\u0027, 2 for checksum, 1 for null terminator) to provide adequate space\nfor snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"9a6fe1fdf452f2a27d1167ea7fa0e2aa746d9206":{"kind":"NO_CODE_CHANGE","_number":4,"created":"2025-09-10 07:09:20.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/4","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/4","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/4 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/4 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/4 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/4 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/4","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/4 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"5706d5804f2d7671974f3e01df96f989d487461d","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 07:07:47.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 (1 for \u0027$\u0027,\n1 for \u0027#\u0027, 2 for checksum, 1 for null terminator) to provide adequate space\nfor snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"ea6a23e0635fb66042ea0e2d0e5209fd8134aa65":{"kind":"TRIVIAL_REBASE","_number":7,"created":"2025-09-10 12:45:07.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/7","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/7","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/7 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/7 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/7 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/7 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/7","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/7 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"1d92b40a42cba535206f4cfc915217a93699a000","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 12:44:57.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 (1 for \u0027$\u0027,\n1 for \u0027#\u0027, 2 for checksum, 1 for null terminator) to provide adequate space\nfor snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"f6a0c0949d2e52f91c85e757409d01558fdc2110":{"kind":"TRIVIAL_REBASE","_number":6,"created":"2025-09-10 12:28:30.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/6","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/6","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/6 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/6 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/6 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/6 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/6","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/6 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"505d04827164ac30f86e3a4ae7c441a2351c7331","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 12:28:21.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 (1 for \u0027$\u0027,\n1 for \u0027#\u0027, 2 for checksum, 1 for null terminator) to provide adequate space\nfor snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"b6bb0661f91b4e86b40758896226cbe5dbe2ab55":{"kind":"REWORK","_number":1,"created":"2025-09-10 04:23:44.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/1","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/1","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/1 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/1","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/1 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"0e278bf3ff84e114de33f7a7ea9d63a9ccbb7ff1","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 to\nprovide adequate space for snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"56957b2c5f0ce9b0f5b1b89345ea92f89c120432":{"kind":"TRIVIAL_REBASE","_number":3,"created":"2025-09-10 05:29:59.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/3","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/3","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/3 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/3 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/3 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/3 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/3","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/3 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"5706d5804f2d7671974f3e01df96f989d487461d","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 05:29:49.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 to\nprovide adequate space for snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}},"2776327189442c042c217ece5e722f931c9aa997":{"kind":"TRIVIAL_REBASE","_number":2,"created":"2025-09-10 05:20:57.000000000","uploader":{"_account_id":1001991,"name":"Ryan QIAN","email":"jianghao.qian@outlook.com","username":"jhqian"},"ref":"refs/changes/17/9117/2","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/17/9117/2","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/2 \u0026\u0026 git checkout -b change-9117 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/17/9117/2","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/17/9117/2 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"ea2ff8dcc350f9b451a48ec192473761de72d245","subject":"doc: add hpm_xpi flash driver description"}],"author":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 04:23:26.000000000","tz":480},"committer":{"name":"Ryan QIAN","email":"jianghao.qian@hpmicro.com","date":"2025-09-10 05:20:32.000000000","tz":480},"subject":"gdb_server: Fix buffer size calculation for snprintf null terminator","message":"gdb_server: Fix buffer size calculation for snprintf null terminator\n\nThe buffer size check was using len + 4 but snprintf requires additional\nspace for the null terminator. The snprintf call formats \u0027#%02x\u0027 which\nneeds 4 bytes total (1 for \u0027#\u0027, 2 for checksum, 1 for null terminator).\n\nThe original check of len + 4 was insufficient and could cause snprintf\nto truncate the checksum and replace the last character with \u0027\\0\u0027,\nleading to malformed GDB packets.\n\nFix by changing the buffer size check from len + 4 to len + 5 to\nprovide adequate space for snprintf\u0027s null terminator.\n\nChange-Id: Ibf8b3c3f5e4d5ac5be795b8e688e055453798afe\nSigned-off-by: Ryan QIAN \u003cjianghao.qian@hpmicro.com\u003e\n"}}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"CLOSED","labels":[{"label":"Verified","status":"OK","applied_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"OK","applied_by":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"}}]}],"submit_requirements":[{"name":"Verified","status":"SATISFIED","is_legacy":true,"submittability_expression_result":{"expression":"label:Verified\u003dMAX -label:Verified\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Verified\u003dMAX","-label:Verified\u003dMIN"],"failing_atoms":[]}},{"name":"Code-Review","status":"SATISFIED","is_legacy":true,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX -label:Code-Review\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Code-Review\u003dMAX","-label:Code-Review\u003dMIN"],"failing_atoms":[]}}]}
