lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090709023855.GA5648@cr0.nay.redhat.com>
Date:	Thu, 9 Jul 2009 10:38:55 +0800
From:	Amerigo Wang <xiyou.wangcong@...il.com>
To:	Dick Streefland <dick@...eefland.net>
Cc:	Amerigo Wang <xiyou.wangcong@...il.com>,
	linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kconfig: simplification of scripts/extract-ikconfig

On Mon, Jun 29, 2009 at 01:36:13PM +0200, Dick Streefland wrote:
>On Monday 2009-06-29 10:51, Amerigo Wang wrote:
>| Does this work?
>| My quick test shows no...
>| 
>| I still can't get the right offset number with this trick.
>| 
>| P.S. My grep is 2.5.1.
>
>I've tested the script with grep 2.5.1, and it works for me. Can you be
>more specific about what you think is wrong with the offsets? You need
>to be aware of the fact that because "tr" replaces the first character
>of the pattern by a newline, an offset will be 1 higher than the start
>of the original pattern. The resulting offsets are therefore 1-based
>instead of 0-based, which is exactly what "tail" expects for the "-c"
>option.

Hi,

I appologize for my delay, I totally missed this thread, sorry.

I just tested it, it works! So,

Tested-by: WANG Cong <xiyou.wangcong@...il.com>


But, I still don't understand the behavior of 'grep -abo',
please try the following commands:

echo -e '\x01\x02\x03\x04' > test.bin
od -x test.bin
tr $'\x01\x02\x03\x04' '1234' < test.bin | grep -abo '4'


Am I missing something here??

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ