[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Review Request: Resubmit: Fix to game of life applet to avoid
From: the.goofeedude () gmail ! com
Date: 2010-06-22 15:01:25
Message-ID: 20100622150125.11431.51886 () localhost
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
> On 2010-06-21 14:59:37, Marco Martin wrote:
> > good catch
Hi Marco,
This is the first patch I've ever submitted to the review board. What's the=
process like from here? I currently don't have a subversion account; will =
another developer submit this patch?
I'm hoping to become a regular contributor, should I apply for an SVN accou=
nt now? Or wait until I have a few more patches before applying for an acco=
unt?
Any tips would be greatly appreciated! Thanks for your time and review.
- obby
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/4363/#review6216
-----------------------------------------------------------
On 2010-06-21 14:52:36, obby wrote:
> =
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/4363/
> -----------------------------------------------------------
> =
> (Updated 2010-06-21 14:52:36)
> =
> =
> Review request for Plasma.
> =
> =
> Summary
> -------
> =
> Note: This review request replaces former request http://reviewboard.kde.=
org/r/4361/ which was discarded after several attempts to upload an updated=
diff failed. I apologize for the extra mail. The original fix contained an=
other bug which would cause a crash if the game board was not symmetrical.
> =
> This patch fixes an off-by-one error which led to accessing memory just o=
utside of the cells array. It also kept the first character in the cells ar=
ray from ever being displayed on the board properly, and a bunch of crazy m=
ath to keep the rules of the game intact. (The last cell displayed was refl=
ecting the state of memory outside of the cells array.)
> =
> =
> Diffs
> -----
> =
> /trunk/KDE/kdeplasma-addons/applets/life/life.h 1138875 =
> /trunk/KDE/kdeplasma-addons/applets/life/life.cpp 1138875 =
> =
> Diff: http://reviewboard.kde.org/r/4363/diff
> =
> =
> Testing
> -------
> =
> Testing Done:
> Aside from the initial test cases which were used to confirm the bug (har=
d coding one char in the cells array to always be 1 and moving it around to=
find the bounds of the display,) I also generated a few other board states=
manually using examples found here:
> http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
> =
> "Blinker" and "Toad" were two that were used to test.
> =
> Note: The bug in the original fix (diff in previous review request mentio=
ned above) led to a crash when the gameboard was resized to be non-square. =
After fixing that bug, I tried several random board sizes, and they all wor=
ked.
> =
> =
> Thanks,
> =
> obby
> =
>
[Attachment #5 (text/html)]
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;"> <tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://reviewboard.kde.org/r/4363/">http://reviewboard.kde.org/r/4363/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On June 21st, 2010, 2:59 p.m., <b>Marco Martin</b> \
wrote:</p> <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; \
padding-left: 10px;"> <pre>good catch</pre>
</blockquote>
</blockquote>
<pre>Hi Marco,
This is the first patch I've ever submitted to the review board. What's the \
process like from here? I currently don't have a subversion account; will another \
developer submit this patch?
I'm hoping to become a regular contributor, should I apply for an SVN account \
now? Or wait until I have a few more patches before applying for an account?
Any tips would be greatly appreciated! Thanks for your time and review.</pre>
<br />
<p>- obby</p>
<br />
<p>On June 21st, 2010, 2:52 p.m., obby wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://reviewboard.kde.orgrb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;"> <tr>
<td>
<div>Review request for Plasma.</div>
<div>By obby.</div>
<p style="color: grey;"><i>Updated 2010-06-21 14:52:36</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0;">Note: This review request replaces former \
request http://reviewboard.kde.org/r/4361/ which was discarded after several attempts \
to upload an updated diff failed. I apologize for the extra mail. The original fix \
contained another bug which would cause a crash if the game board was not \
symmetrical.
This patch fixes an off-by-one error which led to accessing memory just outside of \
the cells array. It also kept the first character in the cells array from ever being \
displayed on the board properly, and a bunch of crazy math to keep the rules of the \
game intact. (The last cell displayed was reflecting the state of memory outside of \
the cells array.) </pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0;">Testing Done:
Aside from the initial test cases which were used to confirm the bug (hard coding one \
char in the cells array to always be 1 and moving it around to find the bounds of the \
display,) I also generated a few other board states manually using examples found \
here: http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
"Blinker" and "Toad" were two that were used to test.
Note: The bug in the original fix (diff in previous review request mentioned above) \
led to a crash when the gameboard was resized to be non-square. After fixing that \
bug, I tried several random board sizes, and they all worked.</pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>/trunk/KDE/kdeplasma-addons/applets/life/life.h <span style="color: \
grey">(1138875)</span></li>
<li>/trunk/KDE/kdeplasma-addons/applets/life/life.cpp <span style="color: \
grey">(1138875)</span></li>
</ul>
<p><a href="http://reviewboard.kde.org/r/4363/diff/" style="margin-left: 3em;">View \
Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic