BUFFER_OVERFLOW on wrap inconsistent with getPacketBufferSize
@dario-weswit 已经在做这个了。
开始于 2023年1月15日。
评估
这个 Issue 还没有评估数据。
描述
Hello,
I'm testing Conscrypt 2.5.2 on the server side and I set setUseSessionTickets(sslEngine, true).
Some connections work well, but in some cases, even though the handshake succeeds, upon a later wrap I get BUFFER_OVERFLOW.
The problem is that, by later invoking getPacketBufferSize, I see that the buffer was sized accordingly, at 16709 bytes (and it was empty).
If I try doubling the buffer, the wrap works and the buffer reports 17408 bytes of data.
My suspect is that the involved operation is the production of the NewSessionTicket packet.
What I see is that the input buffer to wrap is about 90KB and wrap consumes 16384 bytes.
So, perhaps the native part returns the encrypted bytes together with the NewSessionTicket packet and this breaks the 16709 limit.
It may be difficult for me to provide a test case; please clarify if you need other specific details on the interaction.
However, I see that getPacketBufferSize always returns a constant, so it must rely on this limit to be always obeyed by the underlying native implementation.
Moreover, it seems that there is no cross-check on the size of the data received from the native part against this constant.
So, this seems like an internal inconsistency.
- 主要语言
- Java
- 星标
- 1.4k
- 派生
- 332
- 平均合并
- 2 天 56 分钟
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/conscrypt 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 3/5 半天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 49/100
-
难度 4/5 3-5 天 新手友好度 22/100
-
难度 3/5 1-2 天 新手友好度 58/100
相似的 Issue
-
beginner difficulty: easy documentation good first issue hacktoberfest help wanted observability size/S up-for-grabs
难度 1/5 1 小时以内 新手友好度 88/100
dmitriy-iliyov/spring-transactional-outbox#82 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
RamazanKara/nightjar#264 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
netty/netty#18628 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 87/100
apache/flink-agents#1500 ·
维护者通常 1 天内回复
-
bug frontend
难度 2/5 1-3 小时 新手友好度 85/100
sylvainmetayer/planning-equipes#495 ·
维护者通常 1 天内回复