5051: Comment posted via rbt or API sometimes land on a wrong line location

khui

What version are you running?

RBTools 5.3 (Python 3.13.5)
Review Board 4.0.4.2

What's the URL of the page containing the problem?

N/A

What steps will reproduce the problem?

  1. Someone posted a CR 217619
  2. I run: uv run rbt review add-diff-comment --server https://codereviews.redacted.com -r 217619 --diff-revision 9 -f redacted/xxxxxx/xxxxxx/xx/xxxxxxxxx.h --line 107 --num-lines 2 -t "My test comment"
  3. I visit the reviewboard page and look at the draft review created as a result

What is the expected output? What do you see instead?

Expected: see that my test comment would appear on lines 107-108.
Instead: see that my test comment appears on lines 94-95

What operating system are you using? What browser?

MacOS, Firefox

Please provide any additional information below.

Also tested posting the comment directly via the API. Same result.
The issue is reliably reproducible on some CR, but it does not happen to every CR.