[ 
https://issues.apache.org/jira/browse/GROOVY-12109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18092085#comment-18092085
 ] 

ASF GitHub Bot commented on GROOVY-12109:
-----------------------------------------

daniellansun merged PR #2634:
URL: https://github.com/apache/groovy/pull/2634




> Harden Closure deserialization against owner/delegate reference cycle
> ---------------------------------------------------------------------
>
>                 Key: GROOVY-12109
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12109
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>
>   A closure whose {{owner}}/{{delegate}}/{{thisObject}} references form a 
> cycle serializes successfully but recurses without bound when the closure is 
> later invoked.                                                                
>                                                        
>                                                                               
>                                                                               
>                                                                               
>                                                   
>   Add a defensive cycle check when deserializing the built-in serializable 
> closure types, rejecting such graphs with an {{InvalidObjectException}}. 
> Legitimate closure serialization (including curried and composed closures) is 
> unaffected.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to