/[pcre2]/code/trunk/src/pcre2test.c
ViewVC logotype

Diff of /code/trunk/src/pcre2test.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 695 by ph10, Tue Mar 21 16:18:54 2017 UTC revision 696 by ph10, Tue Mar 21 17:46:21 2017 UTC
# Line 2889  if (pbuffer32_size < 4*len + 4) Line 2889  if (pbuffer32_size < 4*len + 4)
2889    {    {
2890    if (pbuffer32 != NULL) free(pbuffer32);    if (pbuffer32 != NULL) free(pbuffer32);
2891    pbuffer32_size = 4*len + 4;    pbuffer32_size = 4*len + 4;
2892    if (pbuffer32_size < 256) pbuffer32_size = 256;    if (pbuffer32_size < 512) pbuffer32_size = 512;
2893    pbuffer32 = (uint32_t *)malloc(pbuffer32_size);    pbuffer32 = (uint32_t *)malloc(pbuffer32_size);
2894    if (pbuffer32 == NULL)    if (pbuffer32 == NULL)
2895      {      {
# Line 7600  if (arg_error != NULL) Line 7600  if (arg_error != NULL)
7600    int errcode;    int errcode;
7601    char *endptr;    char *endptr;
7602    
7603  /* Ensure the relevant non-8-bit buffer is available. */  /* Ensure the relevant non-8-bit buffer is available. Ensure that it is at
7604    least 128 code units, because it is used for retrieving error messages. */
7605    
7606  #ifdef SUPPORT_PCRE2_16  #ifdef SUPPORT_PCRE2_16
7607    if (test_mode == PCRE16_MODE)    if (test_mode == PCRE16_MODE)
# Line 7620  if (arg_error != NULL) Line 7621  if (arg_error != NULL)
7621  #ifdef SUPPORT_PCRE2_32  #ifdef SUPPORT_PCRE2_32
7622    if (test_mode == PCRE32_MODE)    if (test_mode == PCRE32_MODE)
7623      {      {
7624      pbuffer32_size = 256;      pbuffer32_size = 512;
7625      pbuffer32 = (uint32_t *)malloc(pbuffer32_size);      pbuffer32 = (uint32_t *)malloc(pbuffer32_size);
7626      if (pbuffer32 == NULL)      if (pbuffer32 == NULL)
7627        {        {

Legend:
Removed from v.695  
changed lines
  Added in v.696

  ViewVC Help
Powered by ViewVC 1.1.5