Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 6e551a9f7d7509f13f4dde8f2d6828b51cd2cbb7
Author: ureishi <[email protected]>
Date:   Sat Nov 9 15:54:20 2024 +0900

    patch: add validation

    同期データを加工して不正に頂点情報用のメモリを確保出来てしまう脆弱性に対する対応
  • Loading branch information
ureishi committed Nov 9, 2024
1 parent 851d08a commit 0f57717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Assets/QvPen/Runtime/UdonScript/QvPen_Pen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ private int GetMode(Vector3[] data)
=> data.Length > 0 ? (int)GetData(data, FOOTER_ELEMENT_DATA_INFO).y : MODE_UNKNOWN;

private int GetFooterLength(Vector3[] data)
=> data.Length > 0 ? (int)GetData(data, FOOTER_ELEMENT_DATA_INFO).z : 0;
=> data.Length > 0 ? Mathf.Clamp((int)GetData(data, FOOTER_ELEMENT_DATA_INFO).z, 0, data.Length) : 0;

#endregion

Expand Down

0 comments on commit 0f57717

Please sign in to comment.