-
-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port C
(metainformation) commands to the rzshell
#1752
Conversation
args: [] | ||
- name: CCu | ||
cname: comment_unique | ||
summary: Add unique comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a unique comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ret2libc other commands, e.g. CC
and CCa
append a new comment to all comments existed before. This one overwrites any existing comment and ensures there is only one. A bit weird, I know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I guessed that but I suggest to edit a bit the summary/description of this command because it is quite hard to understand.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ok, the only remaining issue now is the escaping backslashes. When strings found during the binary scanning in
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot of missing errors check in the command handlers, but those things seem to be missing at the API level so that's alright for now.
Everything, from the code to the help structure look much better organized and simple to understand. There may be bugs in the rewrite, but... we'll catch them I guess :) Nice job!
Just fix those few remaining things, but overall LGTM.
Why do we need to escape it when finding them? I think only the printing should escape/sanitize strings, not the search. One could as well define a string including |
I don't know, this is how it was implemented (it's outside of the RzAnalysis). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This needs more investigation. there are missing chars in the string ( |
@kazarmy ignore that please, it was invalid assumption |
ok … i read Mattermost after i had already replied 😅
… On 14 Oct 2021, at 3:35 PM, Anton Kochkov ***@***.***> wrote:
@kazarmy ignore that please, it was invalid assumption
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Marked the remaining test as BROKEN and added an issue #1836 Time to merge once green (or fix while it's building, if you are brave enough). |
There is one test broken only on Travis PPC64LE and ARM:
|
This comment has been minimized.
This comment has been minimized.
MacOS worker failed with unrelated error (network problem):
|
SQUASH ME
Your checklist for this pull request
Detailed description
C
(meta information, comments) commands to the newshellCvr
,Cvs
,Cvb
to the higher level as subcommands ofCv
:-
Cv [name] [text]
to append the comment of any kind of variable-
Cv- [name]
to remove the comment of any kind of variable-
Cve [name]
to opencfg.editor
to edit the comment of any kind of variableCvr
,Cvs
, andCvb
just list all comments of the variables/arguments of the corresponding kindCd
previously allowed the second parameter (repeat) to be passed in two different ways:Cd 4[8]
andCd 4 8
, where 4 is the size and 8 is the repeat. I removed theCd 4[8]
and left onlyCd 4 8
for simplicity and consistency.Csj
,Cs*
,Csl
becameCslj
,Csl*
,Csll
since pureCs
should not list strings and only add it,Csl
was made to list strings in various modes.Cd
,Cf
,CC
,CS
now require their arguments, previously called without arguments they were listing corresponding meta information.Cdl
,Cfl
,CCl
,CSl
, etc, similar toCsl
.Cz
command as an alias toCsa
command was completely removedCC,
(filelink) command was renamed toCCF
.CCa
(append command) was removed in favor of plainCC
Csg
command to guess encoding was removed,Cs
now tries to guess the encoding by defaultCs..
was renamed toCs.l
- as in LONG output type of theCs.
command (there is also JSON output withCs.j
)Csw
andCsW
to add UTF-16 and UTF-32 strings correspondinglyTest plan
CI is green
Closes #792
Partially addresses #1342