public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug string/19390] Integer overflow in strncat
       [not found] <bug-19390-131@http.sourceware.org/bugzilla/>
@ 2021-08-19  6:02 ` ucelsanicin at yahoo dot com
  2021-09-10 19:36 ` mehmetgelisin at aol dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: ucelsanicin at yahoo dot com @ 2021-08-19  6:02 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=19390

Ucel Sani <ucelsanicin at yahoo dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ucelsanicin at yahoo dot com

--- Comment #11 from Ucel Sani <ucelsanicin at yahoo dot com> ---
On further thought, we shouldn't be encouraging palindromish REs in the manual,
so that naive users aren't drawn into this mess. So I installed the attached
further patch to the documentation.

Of course it would be better to fix the back-reference bugs but this is low
priority and I doubt whether anybody has the time.
[0001-doc-don-t-encourage-back-references.patch
credit http://www.iu-bloomington.com/ https://komiya-dental.com/
http://steemfilter.space/ http://michielleunens.tech/
http://sleepypoetstuff.website/ http://biciclubvalencia.website/
http://reputation-management.site/ http://pitesti.online/ http://tobuweb.space/
http://ancientmariners.online/ http://betwsycoednet.online http://kuzin.website
http://kundaliniyoga.tech http://localpay.tech http://my-iframe.online
http://getimov.xyz/ http://ooviv.xyz/ http://mirei.xyz http://toblek.xyz/
http://sevenwonders.store http://peralga.xyz/ https://texastourgear.live
http://freixenet.site/influencerprogramme/ http://timvanorden.store/
http://rhee.tech/ http://f3group.online/ https://www.hlungomare.store/
https://www.lungomarebikehotel.store http://www.lvmaimai.xyz/
https://sozdanie.site/ http://agens128.site/ http://ruirui.store/
http://www.foamhands.store/ http://www.i-obchody.info/
http://naughtyrobot.digital/ https://www.webb-dev.co.uk/
https://waytowhatsnext.com/ http://troubadourtunes.online/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug string/19390] Integer overflow in strncat
       [not found] <bug-19390-131@http.sourceware.org/bugzilla/>
  2021-08-19  6:02 ` [Bug string/19390] Integer overflow in strncat ucelsanicin at yahoo dot com
@ 2021-09-10 19:36 ` mehmetgelisin at aol dot com
  2021-09-10 19:50 ` mark at klomp dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: mehmetgelisin at aol dot com @ 2021-09-10 19:36 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=19390

Mehmet gelisin <mehmetgelisin at aol dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mehmetgelisin at aol dot com

--- Comment #12 from Mehmet gelisin <mehmetgelisin at aol dot com> ---
We had some time for looking into this bug and found the reason for this error
seems to be that v in cp-valprint.c:316 can be NULL when the TRY-CATCH is
triggered and therefore v never gets assigned. The function
cp_print_static_field doesn't check that the passed v is NULL.

  struct value *v = NULL;                                 

  TRY                                                     
    {                                                     
      v = value_static_field (type, i);                   
    }                                                     

  CATCH (ex, RETURN_MASK_ERROR)                           
    {                                                     
      fprintf_filtered (stream,                           
                        _("<error reading variable: %s>"),            
                        ex.message);                                  
    }                                                     
  END_CATCH              https://komiya-dental.com/                             

          cp_print_static_field (TYPE_FIELD_TYPE (type, i),   
                         v, stream, recurse + 1,                      
                         options);                                    

We looked into the commit history and there used to be a check that after the
exception was thrown v is not NULL. Therefore I would propose the following
patch.

  struct value *v = NULL;                               

  TRY                                                   
    {                                                   
      v = value_static_field (type, i);                 
    }                                                   
      http://www.iu-bloomington.com/                                            
  CATCH (ex, RETURN_MASK_ERROR)                         
    {                                                   
      fprintf_filtered (stream,                         
                        _("<error reading variable: %s>"),          
                        ex.message);                                
      v = NULL; // In case v was already modified       
    }                                                   
  END_CATCH     https://www.webb-dev.co.uk/                                     

  if (v !=NULL ) {                                      

          cp_print_static_field (TYPE_FIELD_TYPE (type, i), 
                         v, stream, recurse + 1,                    
                         options);                                  
  }                                                                             

Any comment would be appreciated https://waytowhatsnext.com/  

Best Regards, 


We had some time for looking into this bug and found the reason for this error
seems to be that v in cp-valprint.c:316 can be NULL when the TRY-CATCH is
triggered and therefore v never gets assigned. The function
cp_print_static_field doesn't check that the passed v is NULL.

  struct value *v = NULL;                                 
       http://www.acpirateradio.co.uk/                                          
  TRY                                                     
    {                                                     
      v = value_static_field (type, i);                   
    }                                                     

  CATCH (ex, RETURN_MASK_ERROR)                           
    {                                                     
      fprintf_filtered (stream,                           
                        _("<error reading variable: %s>"),   
http://www.logoarts.co.uk/          
                        ex.message);                                  
    }                                                     
  END_CATCH                                               

          cp_print_static_field (TYPE_FIELD_TYPE (type, i),   
                         v, stream, recurse + 1,                      
                         options);    http://www.slipstone.co.uk/               

We looked into the commit history and there used to be a check that after the
exception was thrown v is not NULL. Therefore I would propose the following
patch.

  struct value *v = NULL;   http://embermanchester.uk/                          

  TRY                                                   
    {                                                   
      v = value_static_field (type, i);                 
    }      http://connstr.net/                                              

  CATCH (ex, RETURN_MASK_ERROR)                         
    {       http://joerg.li/                                             
      fprintf_filtered (stream,                         
                        _("<error reading variable: %s>"),          
                        ex.message);        http://www.jopspeech.com/           
      v = NULL; // In case v was already modified       
    }                                                   
  END_CATCH                                             
          http://www.wearelondonmade.com/                                       
  if (v !=NULL ) {                                      

          cp_print_static_field (TYPE_FIELD_TYPE (type, i), 
                         v, stream, recurse + 1, http://www.compilatori.com/    
                         options);                                  
  }                                                                             

Any comment would be appreciated
http://www-look-4.com/ 
Best Regards,

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug string/19390] Integer overflow in strncat
       [not found] <bug-19390-131@http.sourceware.org/bugzilla/>
  2021-08-19  6:02 ` [Bug string/19390] Integer overflow in strncat ucelsanicin at yahoo dot com
  2021-09-10 19:36 ` mehmetgelisin at aol dot com
@ 2021-09-10 19:50 ` mark at klomp dot org
  2021-09-22 16:58 ` mervegunesli at aol dot com
  2021-11-30  9:18 ` ma.ro.so01234567890 at gmail dot com
  4 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2021-09-10 19:50 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=19390

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug string/19390] Integer overflow in strncat
       [not found] <bug-19390-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-09-10 19:50 ` mark at klomp dot org
@ 2021-09-22 16:58 ` mervegunesli at aol dot com
  2021-11-30  9:18 ` ma.ro.so01234567890 at gmail dot com
  4 siblings, 0 replies; 5+ messages in thread
From: mervegunesli at aol dot com @ 2021-09-22 16:58 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=19390

Merve Gunesli <mervegunesli at aol dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mervegunesli at aol dot com

--- Comment #13 from Merve Gunesli <mervegunesli at aol dot com> ---
http://www.acpirateradio.co.uk/category/computers/
http://www.slipstone.co.uk/category/computers/
http://embermanchester.uk/category/services/
http://connstr.net/health/covid-and-tech/
http://www.jopspeech.com/category/health/
http://www.wearelondonmade.com/tech/nvidia-and-samsung/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug string/19390] Integer overflow in strncat
       [not found] <bug-19390-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-09-22 16:58 ` mervegunesli at aol dot com
@ 2021-11-30  9:18 ` ma.ro.so01234567890 at gmail dot com
  4 siblings, 0 replies; 5+ messages in thread
From: ma.ro.so01234567890 at gmail dot com @ 2021-11-30  9:18 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=19390

Angieng <ma.ro.so01234567890 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ma.ro.so01234567890 at gmail dot c
                   |                            |om

--- Comment #14 from Angieng <ma.ro.so01234567890 at gmail dot com> ---
I have a lot of questions about this bug. 
https://www.twincitiesdeckandfence.com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-30  9:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19390-131@http.sourceware.org/bugzilla/>
2021-08-19  6:02 ` [Bug string/19390] Integer overflow in strncat ucelsanicin at yahoo dot com
2021-09-10 19:36 ` mehmetgelisin at aol dot com
2021-09-10 19:50 ` mark at klomp dot org
2021-09-22 16:58 ` mervegunesli at aol dot com
2021-11-30  9:18 ` ma.ro.so01234567890 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).