-
Notifications
You must be signed in to change notification settings - Fork 164
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
[IDA Plugin] UnicodeEncodeError + edited config should be validated #109
Comments
Hello, |
I'm using IDA 7.2 on Linux. There is also another problem when the configuration is edited using the "Edit button" in the GUI. The result string is saved "as-if" in the AnalyzerConfig object, without passing any validations sets by the different setters for the fields. I guess the following snippet explains it better: def validate_config(self, config):
# A mapping of config fields => setter names
translator = {'cut': 'stop_address',
'analysis': 'analysis_method',
'filepath': 'binary_filepath',
'headers': 'headers_files',
'analysis_ep': 'analysis_ep',
'in_marshalled_cfa_file': 'in_marshalled_cfa_file',
'format': 'format'}
for section in config.sections():
self._config.add_section(section)
for item, value in config.items(section):
if item in translator:
setattr(self, translator.get(item), value)
else:
self._config.set(section, item, value) Note : this does not solve this issue but would solve others (e.g if you change the start address in the config edit-panel to a non hex-represented value) |
Regarding the encoding problem, it seems I cannot trigger it with the current i'll check the other issue later. |
Hello,
When launching an analysis/saving a config on a file which path contains non-ascii characters, the plugin crash with the following stacktrace:
Steps to reproduce
Using last stable version of the plugin (1.1)
The text was updated successfully, but these errors were encountered: