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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to