[dev] [st] Division by zero

From: Paul Menzel <pmenzel_AT_molgen.mpg.de>
Date: Mon, 18 Jul 2016 14:45:44 +0200

Dear suckless.org folks,


scan-build 3.8.1 warns about a possible division by zero in st 1.3 [1].

> Bug reported by the clang static analyzer.
>
> Description: Division by zero
> File: /home/joey/src/st/st.c
> Line: 4281

If I am not mistaken, this is really a corner case. The user has to set
`actionfps` to zero in `config.def.h`.

```
config.def.h:static unsigned int actionfps = 30;
```

Even setting it to zero and rebuilding the package, I was unable to
trigger the issue.


Best regards,

Paul


[1] http://st.suckless.org/

Received on Mon Jul 18 2016 - 14:45:44 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 18 2016 - 14:48:11 CEST