<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-04-29)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de>

        PR1507
        * libblock/src/bdbuf.c: Avoid NULL pointer access.

        * libblock/src/diskdevs.c: Fixed bounds check in rtems_disk_next().
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2279&r2=text&tr2=1.2280&diff_format=h">M</a></td><td width='1%'>1.2280</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libblock/src/bdbuf.c.diff?r1=text&tr1=1.50&r2=text&tr2=1.51&diff_format=h">M</a></td><td width='1%'>1.51</td><td width='100%'>cpukit/libblock/src/bdbuf.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libblock/src/diskdevs.c.diff?r1=text&tr1=1.23&r2=text&tr2=1.24&diff_format=h">M</a></td><td width='1%'>1.24</td><td width='100%'>cpukit/libblock/src/diskdevs.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2279 rtems/cpukit/ChangeLog:1.2280
--- rtems/cpukit/ChangeLog:1.2279       Thu Apr 29 04:42:51 2010
+++ rtems/cpukit/ChangeLog      Thu Apr 29 06:34:58 2010
</font><font color='#997700'>@@ -1,3 +1,10 @@
</font><font color='#000088'>+2010-04-29    Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+       PR1507
+       * libblock/src/bdbuf.c: Avoid NULL pointer access.
+
+       * libblock/src/diskdevs.c: Fixed bounds check in rtems_disk_next().
+
</font> 2010-04-29        Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * librpc/src/rpc/clnt_udp.c, librpc/src/xdr/xdr_mem.c:

<font color='#006600'>diff -u rtems/cpukit/libblock/src/bdbuf.c:1.50 rtems/cpukit/libblock/src/bdbuf.c:1.51
--- rtems/cpukit/libblock/src/bdbuf.c:1.50      Fri Jan 29 08:57:10 2010
+++ rtems/cpukit/libblock/src/bdbuf.c   Thu Apr 29 06:34:59 2010
</font><font color='#997700'>@@ -2269,6 +2269,7 @@
</font> {
   rtems_chain_node *node;
   static rtems_disk_device null_disk = {
<font color='#000088'>+    .phys_dev = &null_disk,
</font>     .capabilities = 0,
     .ioctl = rtems_bdbuf_null_disk_ioctl
   };

<font color='#006600'>diff -u rtems/cpukit/libblock/src/diskdevs.c:1.23 rtems/cpukit/libblock/src/diskdevs.c:1.24
--- rtems/cpukit/libblock/src/diskdevs.c:1.23   Fri Apr  9 07:28:24 2010
+++ rtems/cpukit/libblock/src/diskdevs.c        Thu Apr 29 06:34:59 2010
</font><font color='#997700'>@@ -475,7 +475,7 @@
</font>     dtab = disktab + major;
     while (true)
     {
<font color='#880000'>-        if ((dtab == NULL) || (minor > dtab->size))
</font><font color='#000088'>+        if ((dtab == NULL) || (minor >= dtab->size))
</font>         {
              major++; minor = 0;
              if (major >= disktab_size)
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>