Project

General

Profile

Actions

Bug #3021

open

sys/dev/drm/i915/i915_gem_stolen.c:115]: (error) Signed integer overflow for expression '65535<<20'

Added by dcb about 7 years ago. Updated about 7 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
04/11/2017
Due date:
% Done:

0%

Estimated time:

Description

Source code is

base = bsm & BSM_MASK;

but

$ fgrep BSM_MASK `find dragonfly/sys/dev -name \*.h -print`
dragonfly/sys/dev/drm/i915/i915_reg.h:#define BSM_MASK (0xFFFF << 20)
$

Macro BSM_MASK seems to be 36 bits wide, which won't fit into a 32 bit int.

Actions

Also available in: Atom PDF