diff options
author | Max Kellermann <max@duempel.org> | 2008-12-24 17:40:41 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-24 17:40:41 +0100 |
commit | a94e59ca2192a9ba80d5ab1919dc25918ce4163c (patch) | |
tree | dc185b6849ee5c093630d27501a179748591033c /src/ack.h | |
parent | 7f98ba24c7ffb026544a0c400e9d8a34ed955782 (diff) | |
download | mpd-a94e59ca2192a9ba80d5ab1919dc25918ce4163c.tar.gz mpd-a94e59ca2192a9ba80d5ab1919dc25918ce4163c.tar.xz mpd-a94e59ca2192a9ba80d5ab1919dc25918ce4163c.zip |
stored_playlist: fix integer overflow in length estimation
With a large maximum playlist length, the integer multiplication
"playlist_max_length * MPD_PATH_MAX" may overflow. Change that to a
division. This was not a dangerous bug, since it was only used for
a quick estimate.
Diffstat (limited to 'src/ack.h')
0 files changed, 0 insertions, 0 deletions