CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 19:57:56 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/vim/vim.git
etag: W/"9a91e99f48f810b2bfefa1acfc536401"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=ccAk%2BTUKMmXsO0XMKcIVxZ%2BVRE7vPe1yrZZ6M%2BGTKjIkVIHeniQYgJxil%2FfgMC6dG1ibIjaFTPhkPPOK3H5soBEh%2FiSQhH0fPyWfd5mFt7Yulc9rNat78sqrLhXVHpnB6xh%2BCymvYnVcWqMdFrEJO3OI52Tgi%2F7WepQ71xIfevsvDAoedqNoGfkKgpotcYmHauxf7%2BwLMhuxizjh8QaCXOY3F6XImexBV5ybmXAoptPaCBQUGSgDktE5bN6Qyop8mmfaHtJ%2B9W05eIb%2FLCyiaQ%3D%3D--dEOOkwezHtLwCzBT--Jb7GNsglq%2FDDi1nt7RIqsw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.535296220.1753646275; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 19:57:55 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 19:57:55 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DDCE:1C79A4:1165D55:16C713D:688684C3
patch 9.1.1567: crash when using inline diff mode · vim/vim@c8b99e2 · GitHub
Copy file name to clipboard
Copy file name to clipboardExpand all lines: src/testdir/test_diffmode.vim
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit c8b99e2
patch 9.1.1567: crash when using inline diff mode
Problem: Crash when using inline diff mode
(Ilya Grigoriev)
Solution: Set tp_diffbuf to NULL when skipping a diff block
(Yee Cheng Chin).
Fix an array out of bounds crash when using diffopt+=inline:char when 4
or more buffers are being diff'ed. This happens when one of the blocks
is empty. The inline highlight logic skips using that buffer's block,
but when another buffer is used later and calls diff_read() to merge the
diff blocks together, it could erroneously consider the empty block's
diff info which has not been initialized, leaving to diff numbers that
are invalid. Later on the diff num is used without bounds checking which
leads to the crash.
Fix this by making sure to unset tp_diffbuf to NULL when we skip a
block, so diff_read() will not consider this buffer to be used within
inline diff. Also, add more bounds checking just to be safe.
closes: #17805
Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>1 parent 0e40501 commit c8b99e2Copy full SHA for c8b99e2
File tree
Expand file treeCollapse file tree
4 files changed
+51
-2
lines changedFilter options
- src
- testdir
- dumps
Expand file treeCollapse file tree
4 files changed
+51
-2
lines changed+13-2Lines changed: 13 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3391 | 3391 |
| |
3392 | 3392 |
| |
3393 | 3393 |
| |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
3394 | 3399 |
| |
3395 | 3400 |
| |
3396 | 3401 |
| |
| |||
3412 | 3417 |
| |
3413 | 3418 |
| |
3414 | 3419 |
| |
3415 |
| - | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
3416 | 3426 |
| |
3417 | 3427 |
| |
3418 | 3428 |
| |
| |||
3626 | 3636 |
| |
3627 | 3637 |
| |
3628 | 3638 |
| |
3629 |
| - | |
| 3639 | + | |
3630 | 3640 |
| |
3631 | 3641 |
| |
3632 | 3642 |
| |
| |||
3675 | 3685 |
| |
3676 | 3686 |
| |
3677 | 3687 |
| |
| 3688 | + | |
3678 | 3689 |
| |
3679 | 3690 |
| |
3680 | 3691 |
| |
|
src/testdir/dumps/Test_diff_inline_multibuffer_empty_block_01.dump
Copy file name to clipboard+20Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + |
src/testdir/test_diffmode.vim
Copy file name to clipboardExpand all lines: src/testdir/test_diffmode.vim+16Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2636 | 2636 |
| |
2637 | 2637 |
| |
2638 | 2638 |
| |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
2639 | 2655 |
| |
2640 | 2656 |
| |
2641 | 2657 |
| |
|
+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
719 | 719 |
| |
720 | 720 |
| |
721 | 721 |
| |
| 722 | + | |
| 723 | + | |
722 | 724 |
| |
723 | 725 |
| |
724 | 726 |
| |
|
You can’t perform that action at this time.
0 commit comments