Skip to content
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

SbeTool generates unreadable sbeir file if file is already existing. #682

Closed
avaiss opened this issue May 26, 2019 · 0 comments
Closed

SbeTool generates unreadable sbeir file if file is already existing. #682

avaiss opened this issue May 26, 2019 · 0 comments
Labels

Comments

@avaiss
Copy link
Contributor

avaiss commented May 26, 2019

The cause is that IrEncoder does not truncate the output file: when generating an IR file, if the destination file was already existing and the generated output takes less space than the current contents of the file, then the extra content at the end of the file is not removed from the output.

This makes the generated file unreadable.

A possible fix would be adding a channel.truncate(0) in the IrEncoder constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants