aboutsummaryrefslogtreecommitdiff
path: root/slirp/slirp.c
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2016-10-12 11:28:08 +0530
committerPaolo Bonzini <pbonzini@redhat.com>2016-10-24 15:27:19 +0200
commit3592fe0c919cf27a81d8e9f9b4f269553418bb01 (patch)
tree95788cb96c4b005dfc13ec10de448c5419d24ce2 /slirp/slirp.c
parent0a752eeea810a1c37f5de4edba355c35cfa42524 (diff)
char: serial: check divider value against baud base
16550A UART device uses an oscillator to generate frequencies (baud base), which decide communication speed. This speed could be changed by dividing it by a divider. If the divider is greater than the baud base, speed is set to zero, leading to a divide by zero error. Add check to avoid it. Reported-by: Huawei PSIRT <psirt@huawei.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-Id: <1476251888-20238-1-git-send-email-ppandit@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'slirp/slirp.c')
0 files changed, 0 insertions, 0 deletions