Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105802238
D26505.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26505.diff
View Options
Index: head/contrib/byacc/closure.c
===================================================================
--- head/contrib/byacc/closure.c
+++ head/contrib/byacc/closure.c
@@ -87,7 +87,7 @@
k = 0;
}
- if (cword & (unsigned)(1 << k))
+ if (cword & (1u << k))
{
rp = derives[j];
while ((rule = *rp++) >= 0)
@@ -151,7 +151,7 @@
{
for (i = 0; i < BITS_PER_WORD; ++i)
{
- if (word & (unsigned)(1 << i))
+ if (word & (1u << i))
{
itemno = rrhs[ruleno + i];
while (csp < csend && *csp < itemno)
Index: head/contrib/byacc/warshall.c
===================================================================
--- head/contrib/byacc/warshall.c
+++ head/contrib/byacc/warshall.c
@@ -28,7 +28,7 @@
while (rowj < relend)
{
- if (*ccol & (unsigned)(1 << i))
+ if (*ccol & (1u << i))
{
rp = rowi;
rend = rowj + rowsize;
@@ -70,7 +70,7 @@
rp = R;
while (rp < relend)
{
- *rp |= (unsigned)(1 << i);
+ *rp |= (1u << i);
if (++i >= BITS_PER_WORD)
{
i = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 9:57 PM (19 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15547505
Default Alt Text
D26505.diff (1 KB)
Attached To
Mode
D26505: byacc: fix UBSAN shift range error
Attached
Detach File
Event Timeline
Log In to Comment