Skip to content

Avoid infinite loop in AbstractResource#contentLength [SPR-9161] #13799

@spring-projects-issues

Description

@spring-projects-issues

Ramunas Belkauskas opened SPR-9161 and commented

In the method org.springframework.core.io.AbstractResource.contentLength() there is an infinite loop - is.read is called only once and than the returned value is tested repeatedly.


Affects: 3.1.1

Sub-tasks:

Referenced from: commits 7ca5fba, 40a6769

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions