mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
Warn when applications use SNDCTL_DSP_GET[IO]PTR even when they shouldn't.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1047 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
07edf59177
commit
1040b69cf2
1 changed files with 10 additions and 1 deletions
|
|
@ -1992,10 +1992,19 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno)
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case SNDCTL_DSP_GETIPTR:
|
||||||
|
debug(DEBUG_LEVEL_NORMAL, __FILE__": invalid ioctl SNDCTL_DSP_GETIPTR\n");
|
||||||
|
goto inval;
|
||||||
|
|
||||||
|
case SNDCTL_DSP_GETOPTR:
|
||||||
|
debug(DEBUG_LEVEL_NORMAL, __FILE__": invalid ioctl SNDCTL_DSP_GETOPTR\n");
|
||||||
|
goto inval;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
debug(DEBUG_LEVEL_NORMAL, __FILE__": unknown ioctl 0x%08lx\n", request);
|
debug(DEBUG_LEVEL_NORMAL, __FILE__": unknown ioctl 0x%08lx\n", request);
|
||||||
|
|
||||||
|
inval:
|
||||||
*_errno = EINVAL;
|
*_errno = EINVAL;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue