You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "lgbo-ustc (via GitHub)" <gi...@apache.org> on 2026/05/28 11:37:47 UTC
[I] [CH] undefined behavior, or a crash in `SparkFunctionStrToMap` [gluten]
lgbo-ustc opened a new issue, #12169:
URL: https://github.com/apache/gluten/issues/12169
### Backend
CH (ClickHouse)
### Bug description
`cpp-ch/local-engine/Functions/SparkFunctionStrToMap.cpp:241-244` reads one past the nullable null map.
`executeImpl` iterates rows with `i`, but checks `(*null_map)[n]`, where `n` is `offsets.size()`. For any non-empty `Nullable(String)` input, this is one past the end of the null map. The result can be a wrong null decision, undefined behavior, or a crash. The null check should use the current row index `i`.
### Gluten version
_No response_
### Spark version
None
### Spark configurations
_No response_
### System information
_No response_
### Relevant logs
```bash
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] [CH] undefined behavior, or a crash in `SparkFunctionStrToMap` [gluten]
Posted by "zzcclp (via GitHub)" <gi...@apache.org>.
zzcclp closed issue #12169: [CH] undefined behavior, or a crash in `SparkFunctionStrToMap`
URL: https://github.com/apache/gluten/issues/12169
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org