Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Input buffer size value gets truncated when it exceeds the size limit

オープン
#263 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

まず、DAQmx C API 呼び出し前に input_buf_size がどのように変換されるかを追跡し、報告された 800000000000 の代入と、その結果として 1136082944 に切り詰められることを再現します。サポートされている int32 の範囲を超える値が暗黙的に切り詰められるのではなくエラーを発生させれば完了です。NI IO Trace を使用して、API に渡される値を確認してください。

索引モデルが issue の本文から書いたものです。

説明

If the input buffer size is assigned a value greater than the size of int32, then the value is truncated and assigned to the buffer size.

I tried to assign a value of 800000000000 to the buffer size and the expectation was that it would raise an error. Rather the buffer was assigned with a value of 1136082944.
NI IO Trace shows that the input_buf_size is getting truncated from 800000000000 to 1136082944 before calling the DAQmx C API,
image

主要言語
Python
スター
592
フォーク
199
平均マージ
1日 16時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ni/nidaqmx-python のほかの issue

ni/nidaqmx-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。