/ Check-in [760e009a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Increase the maximum ruleset id in the fuzzer from 50 to 2^31-1.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 760e009adc6d0fffb8e6f64c7ec283938a417a77
User & Date: drh 2012-02-14 18:56:01
Context
2012-02-20
19:36
Fix a case in test_fuzzer.c causing transformations from the wrong ruleset to be applied in some cases. check-in: cb5f5ebc user: dan tags: trunk
2012-02-14
18:56
Increase the maximum ruleset id in the fuzzer from 50 to 2^31-1. check-in: 760e009a user: drh tags: trunk
15:34
Enhance the fuzzer virtual table to support multiple rule sets. check-in: a8293873 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_fuzzer.c.

   143    143   **
   144    144   ** fuzzer_len is the length of a matching string.  
   145    145   **
   146    146   ** fuzzer_ruleid is an ruleset identifier.
   147    147   */
   148    148   typedef int fuzzer_cost;
   149    149   typedef signed char fuzzer_len;
   150         -typedef unsigned char fuzzer_ruleid;
          150  +typedef int fuzzer_ruleid;
   151    151   
   152    152   /*
   153    153   ** Limits
   154    154   */
   155         -#define FUZZER_MX_LENGTH   50   /* Maximum length of a search string */
   156         -#define FUZZER_MX_RULEID   50   /* Maximum rule ID */
   157         -#define FUZZER_MX_COST   1000   /* Maximum single-rule cost */
          155  +#define FUZZER_MX_LENGTH           50   /* Maximum length of a search string */
          156  +#define FUZZER_MX_RULEID   2147483647   /* Maximum rule ID */
          157  +#define FUZZER_MX_COST           1000   /* Maximum single-rule cost */
   158    158   
   159    159   
   160    160   /*
   161    161   ** Each transformation rule is stored as an instance of this object.
   162    162   ** All rules are kept on a linked list sorted by rCost.
   163    163   */
   164    164   struct fuzzer_rule {