Skip to content

Conversation

erezrokah
Copy link
Member

Summary

Bytes() can panic if the internal buf is nil. This uses Buf() instead, see arrow code in https://github.com/apache/arrow-go/blob/b196d3b316d09f63786f021d4f1baa1fdd7620d2/arrow/memory/buffer.go#L108


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@erezrokah erezrokah requested review from a team and savme July 9, 2025 16:45
@github-actions github-actions bot added the fix label Jul 9, 2025
@kodiakhq kodiakhq bot merged commit 0d79bb6 into main Jul 9, 2025
12 checks passed
@kodiakhq kodiakhq bot deleted the fix/check_nil_buf branch July 9, 2025 18:29
kodiakhq bot pushed a commit that referenced this pull request Jul 9, 2025
🤖 I have created a release *beep* *boop*
---


## [4.87.2](v4.87.1...v4.87.2) (2025-07-09)


### Bug Fixes

* **deps:** Update module github.com/cloudquery/codegen to v0.3.31 ([#2224](#2224)) ([c4b5329](c4b5329))
* Handle nil internal buffer ([#2226](#2226)) ([0d79bb6](0d79bb6))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@erezrokah erezrokah mentioned this pull request Jul 16, 2025
5 tasks
kodiakhq bot pushed a commit that referenced this pull request Jul 16, 2025


Cleans up #2226, #2220 and #2217.

I believe I found the issue and the fix is cloudquery/cloudquery#21058

---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants