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

 
 

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

Submitter:  tomoe mami <tomoe_mami>
Submitted:  Sun 05 Jan 2014 07:26:19 AM UTC
   
 
Category:  script API plugins Severity:  3 - Normal
Priority:  5 - Normal Item Group:  crash
Status:  Fixed Privacy:  Public
Assigned to:  flashcode Originator Name: 
Open/Closed:  Closed Release:  * 0.4.2
IRC nick:  tomoe-mami
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>

 

Attached Files

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

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-09 flashcode Open/ClosedOpen Closed
    2014-01-05 flashcode StatusNone Fixed
        Assigned toNone flashcode
        Release3.3-dev 0.4.2
    2014-01-05 tomoe_mami Attached File- Added test.lua, #30190
        Attached File- Added wee-gdb.txt, #30191

    Back to the top

    Powered by Savane 3.16-11ef.
    Corresponding source code