<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi<br>
<br>
These appear to be easy to address. I would appreciate someone<br>
addressing these:<br>
<br>
i2c/eeprom.c:<br>
<br>
<div id="main-source-line-221" class="source-line" style="color:
rgb(0, 0, 0); font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono
L', Monaco, 'Courier New', Courier, monospace; height: 1.3em;
white-space: nowrap; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 16.7999992370605px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">221</span></div>
<div class="event-wrapper" style="white-space: nowrap; display:
table; color: rgb(71, 71, 71); font-family: 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16.7999992370605px; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<div class="event-row" style="display: table-row;"><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: table-cell; font-family: Consolas, 'Andale Mono WT',
'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation
Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace; background-color: rgb(238, 238, 238);"> </span>
<div id="defect-event-19807588-0" class="event-header with-event
path-event branch-true" style="color: rgb(136, 153, 51);
overflow: hidden; padding: 2px 2px 2px 25px; white-space:
normal; display: table-cell; border: 1px solid transparent;
background-image: none; background-color: rgb(245, 255, 245);
background-position: 1px 2px; background-repeat: no-repeat;"><span
class="event-order">1.</span> <span class="description">Condition<span
class="Apple-converted-space"> </span><span class="code"
style="font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu
Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace, serif; font-size: 1em; white-space: pre-line;
word-wrap: break-word; color: inherit; padding-left: 3px;
padding-right: 3px;">address_bytes > <span
class="cpp_literal" style="color: inherit; font-style:
inherit; font-weight: inherit;">4</span></span>, taking
false branch</span></div>
</div>
</div>
<div class="event-wrapper" style="white-space: nowrap; display:
table; color: rgb(71, 71, 71); font-family: 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16.7999992370605px; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<div class="event-row" style="display: table-row;"><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: table-cell; font-family: Consolas, 'Andale Mono WT',
'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation
Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace; background-color: rgb(238, 238, 238);"> </span>
<div id="defect-event-19807588-2" class="event-header with-event
code-event event-set-0 cond_at_most grouped-event"
style="color: rgb(221, 68, 34); overflow: hidden; padding: 2px
2px 2px 25px; white-space: normal; display: table-cell;
border: 1px solid transparent; cursor: pointer;
background-image: none; background-color: rgb(252, 242, 238);
background-position: 1px 2px; background-repeat: no-repeat;"><span
class="event-order">2.</span> <span class="event-tag"
style="font-weight: 700;">cond_at_most:</span> <span
class="description">Checking<span
class="Apple-converted-space"> </span><span class="code"
style="font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu
Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace, serif; font-size: 1em; white-space: pre-line;
word-wrap: break-word; color: rgb(0, 0, 0); padding-left:
3px; padding-right: 3px;">address_bytes > <span
class="cpp_literal" style="color: inherit; font-style:
inherit; font-weight: inherit;">4</span></span><span
class="Apple-converted-space"> </span>implies that<span
class="Apple-converted-space"> </span><span class="code"
style="font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu
Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace, serif; font-size: 1em; white-space: pre-line;
word-wrap: break-word; color: rgb(0, 0, 0); padding-left:
3px; padding-right: 3px;">address_bytes</span><span
class="Apple-converted-space"> </span>has the value which
may be up to 4 on the false branch.</span></div>
</div>
</div>
<div id="main-source-line-222" class="source-line with-event
path-event branch-true code-event event-set-0 cond_at_most
grouped-event" style="color: rgb(0, 0, 0); font-family: Consolas,
'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans
Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New',
Courier, monospace; height: 1.3em; white-space: nowrap; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 16.7999992370605px;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);"><span class="scm" style="color: rgb(191, 191, 191);
vertical-align: top; display: inline-block; background-color:
rgb(238, 238, 238);"></span><span class="source-line-number"
style="color: rgb(153, 153, 153); text-align: right;
padding-left: 0.3em; padding-right: 0.2em; display:
inline-block; background-color: rgb(238, 238, 238);">222</span> <span
class="cpp_keyword" style="font-weight: 700;">if</span> (<span
id="xref-L-3807205-219-2" class="xref xref-L-3807205-63"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">address_bytes</span> > <span
id="xref-L-3807205-132-2" class="xref xref-L-3807205-0"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">EEPROM_MAX_ADDRESS_BYTES</span>) {</div>
<div id="main-source-line-223" class="source-line" style="color:
rgb(0, 0, 0); font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono
L', Monaco, 'Courier New', Courier, monospace; height: 1.3em;
white-space: nowrap; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 16.7999992370605px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">223</span> <span
id="xref-633234456-1-2" class="xref xref-175961766"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">rtems_set_errno_and_return_minus_one</span>(<span
id="xref-633234488-0-2" class="xref xref-175963504"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">ERANGE</span>);</div>
<div id="main-source-line-224" class="source-line" style="color:
rgb(0, 0, 0); font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono
L', Monaco, 'Courier New', Courier, monospace; height: 1.3em;
white-space: nowrap; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 16.7999992370605px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">224</span> }</div>
<div id="main-source-line-225" class="source-line" style="color:
rgb(0, 0, 0); font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono
L', Monaco, 'Courier New', Courier, monospace; height: 1.3em;
white-space: nowrap; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 16.7999992370605px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">225</span></div>
<div class="event-wrapper" style="white-space: nowrap; display:
table; color: rgb(71, 71, 71); font-family: 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16.7999992370605px; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<div class="event-row" style="display: table-row;"><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: table-cell; font-family: Consolas, 'Andale Mono WT',
'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation
Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace; background-color: rgb(238, 238, 238);"> </span>
<div id="defect-event-19807588-3" class="event-header with-event
path-event branch-true" style="color: rgb(136, 153, 51);
overflow: hidden; padding: 2px 2px 2px 25px; white-space:
normal; display: table-cell; border: 1px solid transparent;
background-image: none; background-color: rgb(245, 255, 245);
background-position: 1px 2px; background-repeat: no-repeat;"><span
class="event-order">3.</span> <span class="description">Condition<span
class="Apple-converted-space"> </span><span class="code"
style="font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu
Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace, serif; font-size: 1em; white-space: pre-line;
word-wrap: break-word; color: inherit; padding-left: 3px;
padding-right: 3px;">page_size_in_bytes > <span
class="cpp_literal" style="color: inherit; font-style:
inherit; font-weight: inherit;">128</span></span>,
taking true branch</span></div>
</div>
</div>
<div id="main-source-line-226" class="source-line with-event
path-event branch-true" style="color: rgb(0, 0, 0); font-family:
Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console',
'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans
Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New',
Courier, monospace; height: 1.3em; white-space: nowrap; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 16.7999992370605px;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);"><span class="scm" style="color: rgb(191, 191, 191);
vertical-align: top; display: inline-block; background-color:
rgb(238, 238, 238);"></span><span class="source-line-number"
style="color: rgb(153, 153, 153); text-align: right;
padding-left: 0.3em; padding-right: 0.2em; display:
inline-block; background-color: rgb(238, 238, 238);">226</span> <span
class="cpp_keyword" style="font-weight: 700;">if</span> (<span
id="xref-L-3807205-217-2" class="xref xref-L-3807205-64"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">page_size_in_bytes</span> > <span
id="xref-L-3807205-23-2" class="xref xref-L-3807205-1"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">EEPROM_MAX_PAGE_SIZE</span>) {</div>
<div id="main-source-line-227" class="source-line" style="color:
rgb(0, 0, 0); font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono
L', Monaco, 'Courier New', Courier, monospace; height: 1.3em;
white-space: nowrap; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 16.7999992370605px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">227</span> <span
id="xref-L-3807205-71-3" class="xref xref-L-3807205-64"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">page_size_in_bytes</span> = <span
id="xref-L-3807205-232-2" class="xref xref-L-3807205-1"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">EEPROM_MAX_PAGE_SIZE</span>;</div>
<div id="main-source-line-228" class="source-line" style="color:
rgb(0, 0, 0); font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono
L', Monaco, 'Courier New', Courier, monospace; height: 1.3em;
white-space: nowrap; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 16.7999992370605px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">228</span> }</div>
<div id="main-source-line-229" class="source-line" style="color:
rgb(0, 0, 0); font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono
L', Monaco, 'Courier New', Courier, monospace; height: 1.3em;
white-space: nowrap; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 16.7999992370605px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">229</span></div>
<div class="event-wrapper" style="white-space: nowrap; display:
table; color: rgb(71, 71, 71); font-family: 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16.7999992370605px; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<div class="event-row" style="display: table-row;"><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: table-cell; font-family: Consolas, 'Andale Mono WT',
'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation
Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace; background-color: rgb(238, 238, 238);"> </span>
<div id="defect-event-19807588-4" class="event-header with-event
main-event code-event event-set-0 large_shift selected-event
grouped-event" style="color: rgb(221, 68, 34); overflow:
hidden; padding: 2px 2px 2px 25px; white-space: normal;
display: table-cell; border: 1px solid rgb(125, 154, 170);
cursor: pointer; background-image:
url(https://scan5.coverity.com:8443/images/sourcebrowser/marker-code-main-event.png);
background-color: rgb(252, 242, 238); background-position: 1px
2px; background-repeat: no-repeat;"><span class="defect-text"
style="display: block; margin-bottom: 2px;">CID 1255517 (#1
of 1): Bad bit shift operation (BAD_SHIFT)</span><span
class="event-order">4.</span> <span class="event-tag"
style="font-weight: 700;">large_shift:</span> <span
class="description">In expression<span
class="Apple-converted-space"> </span><span class="code"
style="font-family: Consolas, 'Andale Mono WT', 'Andale
Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu
Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier,
monospace, serif; font-size: 1em; white-space: pre-line;
word-wrap: break-word; color: rgb(0, 0, 0); padding-left:
3px; padding-right: 3px;">size_in_bytes >> <span
class="cpp_literal" style="color: inherit; font-style:
inherit; font-weight: inherit;">8</span> * address_bytes</span>,
right shifting by more than 31 bits has undefined behavior.
The shift amount,<span class="Apple-converted-space"> </span><span
class="code" style="font-family: Consolas, 'Andale Mono
WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans
Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans
Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco,
'Courier New', Courier, monospace, serif; font-size: 1em;
white-space: pre-line; word-wrap: break-word; color:
rgb(0, 0, 0); padding-left: 3px; padding-right: 3px;"><span
class="cpp_literal" style="color: inherit; font-style:
inherit; font-weight: inherit;">8</span> * address_bytes</span>,
is as much as 32.</span></div>
</div>
</div>
<div id="main-source-line-230" class="source-line with-event
main-event code-event event-set-0 large_shift grouped-event"
style="color: rgb(0, 0, 0); font-family: Consolas, 'Andale Mono
WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
height: 1.3em; white-space: nowrap; font-size: 12px; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 16.7999992370605px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none; widows:
auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);"><span class="scm"
style="color: rgb(191, 191, 191); vertical-align: top; display:
inline-block; background-color: rgb(238, 238, 238);"></span><span
class="source-line-number" style="color: rgb(153, 153, 153);
text-align: right; padding-left: 0.3em; padding-right: 0.2em;
display: inline-block; background-color: rgb(238, 238, 238);">230</span> <span
id="xref-L-3807205-27-3" class="xref xref-L-3807205-67"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">extra_address</span> = <span
id="xref-L-3807205-89-2" class="xref xref-L-3807205-65"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">size_in_bytes</span> >> (<span
class="cpp_literal" style="color: rgb(63, 78, 222);">8</span> * <span
id="xref-L-3807205-233-2" class="xref xref-L-3807205-63"
style="cursor: pointer; border-width: 1px; border-style: solid;
border-color: transparent transparent rgb(204, 204, 204);">address_bytes</span>);</div>
<br>
I think line 230 should be something like:<br>
<br>
if ( address_bytes == EEPROM_MAX_ADDRESS_BYTES )<br>
extra_address = 0;<br>
else<br>
extra_address = size_in_bytes >> (8 * address_bytes);<br>
<br>
That avoids the undefined behavior.<br>
<br>
Comments<br>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research & Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985</pre>
</body>
</html>