bugWeeChat - Bugs: bug #41104, Changing line's prefix using...

 
 

bug #41104: Changing line's prefix using hdata_update crashed Weechat

Submitted by:  tomoe mami <tomoe_mami>
Submitted on:  Sun 05 Jan 2014 07:26:19 AM UTC  
 
Category: script API pluginsSeverity: 3 - Normal
Item Group: crashStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Open/Closed: Closed
Release: 0.4.2IRC nick: tomoe-mami

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 05 Jan 2014 07:26:19 AM UTC, original submission:

Using hdata_update to change the last line's prefix crashed Weechat. The test.lua script and gdb backtrace are in the attachments.

If I use the same script to change message or date, it works fine.

Also, some people have informed me to not use hdata to change stuffs (as it already says modification is forbidden in the top of hdata section of plugin docs), but the doc for hdata_update shows an example of python script changing the date of last line. If it's forbidden, I think that script example should be gone since it will confuse people or may be just make that function unavailable to script.

If modification is allowed but not prefix, then prefix should be removed from "List of hdata -> line_data -> Update allowed".

tomoe mami <tomoe_mami>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #30190:  test.lua added by tomoe_mami (409B - text/x-lua)
file #30191:  wee-gdb.txt added by tomoe_mami (9KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by flashcode (Updated the item)
  • -unavailable- added by tomoe_mami (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 09 Feb 2014 09:40:46 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Sun 05 Jan 2014 01:37:50 PM UTCflashcodeStatusNone=>Fixed
      Assigned toNone=>flashcode
      Release2.1-dev=>0.4.2
    Sun 05 Jan 2014 07:26:19 AM UTCtomoe_mamiAttached File-=>Added test.lua, #30190
      Attached File-=>Added wee-gdb.txt, #30191

    Back to the top


    Powered by Savane 3.1-cleanup1