<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">naoa <visio****@gmail*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2014-06-05 17:42:55 +0900 (Thu, 05 Jun 2014)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0">4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Merge</dt>
<dd style="margin-left: 8.5em">
<ul>
<li>Merged 1a2b3a4: Merge pull request #174 from naoa/fix-normalize-object-check</li>
</ul>
</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">normalize:fix a crash bug when object is not normalizer</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#diff-0">lib/proc.c</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/proc.c (+3 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0L3005">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0L3006">3006</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0L3007">3007</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0L3008">3008</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0L3009">3009</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0L3010">3010</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0L3011">3011</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0L3012">3012</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0R3005">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0R3006">3006</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0R3007">3007</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0R3008">3008</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0R3009">3009</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0R3010">3010</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0R3011">3011</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0R3012">3012</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0R3013">3013</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/4bbdbbe3334a2af20b6483e91ff9ee96e92f48c0#L0R3014">3014</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -3006,7 +3006,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">proc_normalize(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> normalizer = grn_ctx_get(ctx,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_TEXT_VALUE(normalizer_name),</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_TEXT_LEN(normalizer_name));</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- if (!normalizer) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ if (!normalizer ||</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ normalizer->header.type != GRN_PROC ||</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_proc_get_type(ctx, normalizer) != GRN_PROC_NORMALIZER) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ERR(GRN_INVALID_ARGUMENT,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> "unknown normalizer: <%.*s>",</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> (int)GRN_TEXT_LEN(normalizer_name),</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>