The security advisory GHSA-pmpg-6pww-fg6q explicitly names the ConnectedComponentsImage function as the source of an out-of-bounds access vulnerability. Analysis of the associated commit 2ab24d74865ab92faeeefe0fec890abf1e88e57c confirms this. The patch, located in MagickCore/vision.c, introduces boundary checks before accessing the object array within the ConnectedComponentsImage function. Specifically, indices derived from user-controllable connected-components:* artifacts were used without validation, leading to the vulnerability. The added if conditions ensure that these indices are within the allocated size of the object array, thus fixing the out-of-bounds access.