Export to GitHub

grub4dos-chenall - issue #176

cat --locate=\x00 not working


Posted on Apr 7, 2014 by Happy Kangaroo

What steps will reproduce the problem?

check for 0 byte at a location using cat

  1. cat --locate=\x0C --length=1 --number=1 --skip=0x1c2 (hd)0+1

returns 1C2 if byte 0C at 1C2

  1. cat --locate=\x00 --length=1 --number=1 --skip=0x1c2 (hd)0+1

returns 1C3 if byte 0C at 1C2.

Is this a bug?

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

What version of the product are you using? On what operating system?

0.4.5c

Please provide any additional information below.

Comment #1

Posted on Aug 12, 2014 by Happy Hippo

I do not understand what you mean.

cat --locate=\x00 --length=1 --number=1 --skip=0x1c2 (hd)0+1

returns 1C3 if byte 0C at 1C2,where is \x00 located?

Comment #2

Posted on Aug 12, 2014 by Happy Kangaroo

(No comment was entered for this change.)

Attachments

Comment #3

Posted on Aug 19, 2014 by Happy Kangaroo

Can you reproduce this bug?

Comment #4

Posted on Aug 20, 2014 by Happy Hippo

(No comment was entered for this change.)

Comment #5

Posted on Aug 20, 2014 by Happy Hippo

Please try this.

Comment #6

Posted on Aug 20, 2014 by Happy Hippo

(No comment was entered for this change.)

Comment #7

Posted on Aug 20, 2014 by Happy Kangaroo

Thanks! fixed :=)

Comment #8

Posted on Aug 26, 2014 by Happy Hippo

(No comment was entered for this change.)

Status: Done

Labels:
Type-Defect Priority-Medium