[x265] CostEstimateGroup::processTasks() accesses uninitialized memory

Pranav Kant prka at google.com
Mon Jun 23 22:37:46 UTC 2025


Hi,

We noticed that one of our internal tests fails when trying to access
uninitialized memory.

In source/encoder/slicetype.cpp, processTasks() accesses
`m_lookahead.m_metld` which is only initialized in the constructor when
`m_param->bEnableTemporalFilter` is true. This can lead to a crash when
calling processTasks with bEnableTemporalFilter = false.

It seems just moving the declaration closer to the use in that function
should be sufficient?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20250623/82e17170/attachment.htm>


More information about the x265-devel mailing list