Author Topic: avast doen't write in standard output ?  (Read 4970 times)

0 Members and 1 Guest are viewing this topic.

Offline Thomas803

  • Newbie
  • *
  • Posts: 9
avast doen't write in standard output ?
« on: May 28, 2019, 11:12:49 AM »

Very surprisingly the output of “avast -V” command is not in the standard pipe. Easy way to check it: avast -V > myfile create a empty file  (RHEL/Centos)...
Same for avast -h and I guess all parameters...

Is there any security consideration to do so?

Any chance you fix that?

Thanks in advance,
« Last Edit: May 28, 2019, 11:18:12 AM by Thomas803 »

Offline ondrej.kolacek

  • Avast team
  • Sr. Member
  • *
  • Posts: 394
Re: avast doen't write in standard output ?
« Reply #1 on: May 28, 2019, 07:10:54 PM »
thanks for reporting this; this is a bug, but not a security issue: stdout behaves differently in interactive and noninteractive mode; unfortunately we _exit() instead of exit() after printing the information so atexit is not called and stdout is not flushed.
We will have to fix this.
Kind regards,
Ondrej Kolacek