Bug 30808 - crashes on huge input lines
: crashes on huge input lines
Status: NEW
: Branch p7
(All bugs in Branch p7/dwdiff)
: не указана
: all Linux
: P3 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2015-03-05 03:50 by
Modified: 2015-03-05 04:15 (History)


Attachments
dumpmysql-erased.diff.xz (34.93 KB, application/xz)
2015-03-05 03:51, Ivan Zakharyaschev
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2015-03-05 03:50:01
dwdiff-2.0.2-alt1.1

$ xzcat dumpmysql-erased.diff.xz | dwdiff --diff-input -
--- aaaaaaaaa.aaa    2015-03-04 23:21:44.221516084 +0300
+++ /aaaa/aaa/aaaaaaaaa/aaaaaaaaa/.aaaa/aa_aaaaaaaaa/aaaaaaaaa.aaa   
2015-03-05 03:28:27.735432694 +0300
@@ -135,7 +135,7 @@
   `aaaa_aa` aaa(11) aaa aaaa aaaaaaa '0',
   aaaaaaa aaa (`aaaaaa_aa`),
   aaaaaa aaa `aaaaaa_aaaa` (`aaaaaa_aaaa`)
 ) aaaaaa=aaaaaa [-aaaa_aaaaaaaaa=7555-] {+aaaa_aaaaaaaaa=7557+} aaaaaaa
aaaaaaa=aaa8;
 /*!40101 aaa aaaaaaaaa_aaa_aaaaaa = @aaaaa_aa_aaaaaa */;

 --
@@ -144,7 +144,7 @@
Segmentation fault
$ 

Probably, that's because the input contains a huge line.

(Of course, that's artificial. A more sensible way to use it on a file of such
format -- from mysqldump of wordpress data -- would be:

$ xzcat dumpmysql-erased.diff.xz | dwdiff --diff-input - -3 --punctuation 
--- aaaaaaaaa.aaa    2015-03-04 23:21:44.221516084 +0300
+++ /aaaa/aaa/aaaaaaaaa/aaaaaaaaa/.aaaa/aa_aaaaaaaaa/aaaaaaaaa.aaa   
2015-03-05 03:28:27.735432694 +0300
@@ -135,7 +135,7 @@
======================================================================
[-7555-]{+7557+}
======================================================================
@@ -144,7 +144,7 @@
======================================================================
[-7553-]{+7555+}
======================================================================
[-1425423648-]{+1425514007+}
======================================================================
[-7554-]{+7556+}
======================================================================
[-1425497881-]{+1425506803+}
======================================================================
[-1425416448-]{+1425506807+}
======================================================================
[-1425416446-]{+1425506804+}
======================================================================
[-1425416445-]{+1425506803+}
======================================================================
@@ -381,4 +381,4 @@
======================================================================
 [-12-] {+16+}
======================================================================
[-21-]{+28+}
======================================================================
[-44-]{+28+}
======================================================================

)
------- Comment #1 From 2015-03-05 03:51:30 -------
Created an attachment (id=6240) [details]
dumpmysql-erased.diff.xz
------- Comment #2 From 2015-03-05 03:55:51 -------
Fixed in Sisyphus: dwdiff-2.0.9-alt1 doesn't crash.
------- Comment #3 From 2015-03-05 04:15:24 -------
Perhaps, copy from Sisyphus (not to have a crashing package in t7):

http://git.altlinux.org/tasks/141414/logs/events.1.1.log

Approve if you wish...