Title: Diff algorithm hangs in infinite loop on pathological data · Issue #26 · is/java-diff-utils · GitHub
Open Graph Title: Diff algorithm hangs in infinite loop on pathological data · Issue #26 · is/java-diff-utils
X Title: Diff algorithm hangs in infinite loop on pathological data · Issue #26 · is/java-diff-utils
Description: While using this diff lib on a very large collection of files, I encountered a pair of files that caused the diff algorithm to hang. I attach this pathological data, after sanitizing it. What steps will reproduce the problem? 1. Read fil...
Open Graph Description: While using this diff lib on a very large collection of files, I encountered a pair of files that caused the diff algorithm to hang. I attach this pathological data, after sanitizing it. What steps...
X Description: While using this diff lib on a very large collection of files, I encountered a pair of files that caused the diff algorithm to hang. I attach this pathological data, after sanitizing it. What steps...
Opengraph URL: https://github.com/is/java-diff-utils/issues/26
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Diff algorithm hangs in infinite loop on pathological data","articleBody":"```\nWhile using this diff lib on a very large collection of files, I encountered a \npair of files that caused the diff algorithm to hang. I attach this \npathological data, after sanitizing it.\n\nWhat steps will reproduce the problem?\n1. Read files ta and tb as lists of lines of text\n2. Run DiffUtils.diff on these lists\n3. Program does not terminate while Unix diff does.\n\nWhat is the expected output? What do you see instead?\nI did not get any output - program hangs.\n\nWhat version of the product are you using? On what operating system?\ndiffutils-1.2.1, Java 1.7 on Windows 7.\n\nPlease provide any additional information below.\nProblematic sample attached.\n```\n\nOriginal issue reported on code.google.com by `wiener....@gmail.com` on 13 Mar 2013 at 12:41\n\nAttachments:\n- [ta](https://storage.googleapis.com/google-code-attachments/java-diff-utils/issue-26/comment-0/ta)\n- [tb](https://storage.googleapis.com/google-code-attachments/java-diff-utils/issue-26/comment-0/tb)\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-05-19T16:21:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/26/java-diff-utils/issues/26"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8c3c9213-6784-cbb8-30bc-67bbd7f16a31 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7E2:2F7118:BB297D:F368DD:69763283 |
| html-safe-nonce | 52c1caa7eb6e0deaef605a5999dbf6c7b2fd109ff8d075952b345f837cfd8046 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0UyOjJGNzExODpCQjI5N0Q6RjM2OEREOjY5NzYzMjgzIiwidmlzaXRvcl9pZCI6IjMxMTgxNDU1ODQzNTU0ODgzODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 10f6a574164e25a7b8d18697a664ea8caf863d0310b57e418463dea695400d14 |
| hovercard-subject-tag | issue:78155779 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/is/java-diff-utils/26/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c6a80fe9dd2a3e2d974c1d32a2bb7294f77db0d128dd68a0cd6dce88b1395c4/is/java-diff-utils/issues/26 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c6a80fe9dd2a3e2d974c1d32a2bb7294f77db0d128dd68a0cd6dce88b1395c4/is/java-diff-utils/issues/26 |
| og:image:alt | While using this diff lib on a very large collection of files, I encountered a pair of files that caused the diff algorithm to hang. I attach this pathological data, after sanitizing it. What steps... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/is/java-diff-utils git https://github.com/is/java-diff-utils.git |
| octolytics-dimension-user_id | 3188 |
| octolytics-dimension-user_login | is |
| octolytics-dimension-repository_id | 35894000 |
| octolytics-dimension-repository_nwo | is/java-diff-utils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35894000 |
| octolytics-dimension-repository_network_root_nwo | is/java-diff-utils |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width