]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis_recording: Perform a complete match on requested filename.
authorSean Bright <sean.bright@gmail.com>
Thu, 10 Mar 2022 17:07:40 +0000 (12:07 -0500)
committerKevin Harwell <kharwell@digium.com>
Wed, 23 Mar 2022 23:08:07 +0000 (18:08 -0500)
commitb15d2f9e4b6d209a3e74460758e223ce83126863
tree7c0aa6a546c436220152bbf852cf25827a2b7d93
parent5a30f0c6fe409c8006dd0fa79adcf62f956de76e
stasis_recording: Perform a complete match on requested filename.

Using the length of a file found on the filesystem rather than the
file being requested could result in filenames whose names are
substrings of another to be erroneously matched.

We now ensure a complete comparison before returning a positive
result.

ASTERISK-29960 #close

Change-Id: Id3ffc77681b9b75b8569062f3d952a128a21c71a
res/stasis_recording/stored.c