Skip to content

Commit

Permalink
oji
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 15, 2024
1 parent b3ea4c2 commit 3e8809c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 2 additions & 0 deletions libr/cons/grep.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,11 +815,13 @@ R_API void r_cons_grepbuf(void) {
}
if (grep->zoom) {
char *sin = calloc (cons->context->buffer_len + 2, 4);
#if 0
if (R_UNLIKELY (!sin)) {
grep->zoom = 0;
grep->zoomy = 0;
return;
}
#endif
strcpy (sin, cons->context->buffer);
char *out = r_str_scale (in, grep->zoom * 2, grep->zoomy? grep->zoomy: grep->zoom);
if (out) {
Expand Down
12 changes: 0 additions & 12 deletions test/db/cmd/cmd_CL
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ NAME=CL address
FILE=bins/elf/dwarf3_line
CMDS=CL~$$addr
EXPECT=<<EOF

addr: 0x00001139
addr: 0x00001141
addr: 0x0000114a
Expand Down Expand Up @@ -34,7 +33,6 @@ NAME=CL dwarf5 address
FILE=bins/elf/dwarf5_line
CMDS=CL~$$addr
EXPECT=<<EOF

addr: 0x00001139
addr: 0x00001141
addr: 0x0000114a
Expand Down Expand Up @@ -66,7 +64,6 @@ NAME=CL clang address
FILE=bins/elf/dwarf3_line_cl
CMDS=CL~$$addr
EXPECT=<<EOF

addr: 0x00001140
addr: 0x00001148
addr: 0x0000114d
Expand Down Expand Up @@ -104,7 +101,6 @@ NAME=CL dwarf5 clang address
FILE=bins/elf/dwarf5_line_cl
CMDS=CL~$$addr
EXPECT=<<EOF

addr: 0x00001140
addr: 0x00001148
addr: 0x0000114d
Expand Down Expand Up @@ -142,7 +138,6 @@ NAME=CL file
FILE=bins/elf/dwarf3_line
CMDS=CL~$$file
EXPECT=<<EOF

file: /tmp/dwarf-line-foo.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line//bar.c
Expand All @@ -153,7 +148,6 @@ NAME=CL dwarf5 file
FILE=bins/elf/dwarf5_line
CMDS=CL~$$file
EXPECT=<<EOF

file: /tmp/dwarf-line-foo.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line//bar.c
Expand All @@ -164,7 +158,6 @@ NAME=CL rel file
FILE=bins/elf/dwarf3_line_rel
CMDS=CL~$$file
EXPECT=<<EOF

file: /tmp/dwarf-line-foo.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line//bar.c
Expand All @@ -175,7 +168,6 @@ NAME=CL dwarf5 rel file
FILE=bins/elf/dwarf5_line_rel
CMDS=CL~$$file
EXPECT=<<EOF

file: /tmp/dwarf-line-foo.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line//bar.c
Expand All @@ -186,7 +178,6 @@ NAME=CL clang file
FILE=bins/elf/dwarf3_line_cl
CMDS=CL~$$file
EXPECT=<<EOF

file: /tmp/dwarf-line-foo.c
file: /usr/w/g/radare2/test/bins/src/./dwarf-line/bar.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line.c
Expand All @@ -197,7 +188,6 @@ NAME=CL dwarf5 clang file
FILE=bins/elf/dwarf5_line_cl
CMDS=CL~$$file
EXPECT=<<EOF

file: /tmp/dwarf-line-foo.c
file: /usr/w/g/radare2/test/bins/src/./dwarf-line/bar.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line.c
Expand All @@ -208,7 +198,6 @@ NAME=CL rel clang file
FILE=bins/elf/dwarf3_line_rel_cl
CMDS=CL~$$file
EXPECT=<<EOF

file: /tmp/dwarf-line-foo.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line/bar.c
Expand All @@ -219,7 +208,6 @@ NAME=CL dwarf5 rel clang file
FILE=bins/elf/dwarf5_line_rel_cl
CMDS=CL~$$file
EXPECT=<<EOF

file: /tmp/dwarf-line-foo.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line.c
file: /usr/w/g/radare2/test/bins/src/dwarf-line/bar.c
Expand Down

0 comments on commit 3e8809c

Please sign in to comment.