TizenFX icon indicating copy to clipboard operation
TizenFX copied to clipboard

[NUI] Fix svace issue: An overflow in the arithmetic expression Marshal.SizeOf(typeof(IntPtr)) * count

Open elishateng opened this issue 5 months ago • 1 comments

Description of Change

  1. Fix svace issue of Tizen.NUI/src/public/BaseComponents/DirectRenderingGLView.cs. WID:31088670 An overflow in the arithmetic expression Marshal.SizeOf(typeof(IntPtr)) * count which is used in Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr)) * count) may occur. Please use checked arithmetic to throw IntegerOverflowException in case of overflow instead of possible memory damage SVACE Server Link : https://sa.sec.samsung.net/dm/tizen80/sb2/main/review#PRJID=6&WGID=89407

API Changes

  • ACR: None

elishateng avatar Jan 24 '24 08:01 elishateng